Skip to content

Commit 8d6c40d

Browse files
raltpjcdawkins
andauthored
Fix runtime op parameters type. (#102)
* Fix runtime op parameters type. It's an array in the API; should remain as such. * Apply suggestions from code review Co-authored-by: Patrick Dawkins <pjcdawkins@users.noreply.github.com> --------- Co-authored-by: Patrick Dawkins <pjcdawkins@users.noreply.github.com>
1 parent a2031fd commit 8d6c40d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Model/Deployment/EnvironmentDeployment.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public function getRuntimeOperations(): array
100100
* The operation name.
101101
* @param string $service
102102
* The name of the service or application to run the operation on.
103-
* @param array<string, string> $parameters
103+
* @param string[] $parameters
104104
* Parameters to pass to the operation, as key-value pairs.
105105
*
106106
*@see RuntimeOperation
@@ -114,7 +114,7 @@ public function execRuntimeOperation(string $name, string $service, array $param
114114
'service' => $service,
115115
];
116116
if ($parameters) {
117-
$body['parameters'] = (object) $parameters;
117+
$body['parameters'] = $parameters;
118118
}
119119

120120
return $this->runOperation('operations', 'post', $body);

0 commit comments

Comments
 (0)