From 2d7d5d2604881fcd0d86469af3a9db7a82e8efa0 Mon Sep 17 00:00:00 2001 From: Florian Margaine Date: Mon, 2 Mar 2026 11:34:15 +0100 Subject: [PATCH 1/2] Fix runtime op parameters type. It's an array in the API; should remain as such. --- src/Model/Deployment/EnvironmentDeployment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Deployment/EnvironmentDeployment.php b/src/Model/Deployment/EnvironmentDeployment.php index 991c65e..f1f5409 100644 --- a/src/Model/Deployment/EnvironmentDeployment.php +++ b/src/Model/Deployment/EnvironmentDeployment.php @@ -114,7 +114,7 @@ public function execRuntimeOperation(string $name, string $service, array $param 'service' => $service, ]; if ($parameters) { - $body['parameters'] = (object) $parameters; + $body['parameters'] = $parameters; } return $this->runOperation('operations', 'post', $body); From 9e8a8f071eedeea47049bc247d596a8bcf822d5a Mon Sep 17 00:00:00 2001 From: Florian Margaine Date: Mon, 2 Mar 2026 12:10:54 +0100 Subject: [PATCH 2/2] Apply suggestions from code review Co-authored-by: Patrick Dawkins --- src/Model/Deployment/EnvironmentDeployment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Deployment/EnvironmentDeployment.php b/src/Model/Deployment/EnvironmentDeployment.php index f1f5409..b3d95b1 100644 --- a/src/Model/Deployment/EnvironmentDeployment.php +++ b/src/Model/Deployment/EnvironmentDeployment.php @@ -100,7 +100,7 @@ public function getRuntimeOperations(): array * The operation name. * @param string $service * The name of the service or application to run the operation on. - * @param array $parameters + * @param string[] $parameters * Parameters to pass to the operation, as key-value pairs. * *@see RuntimeOperation