From 85a10e320b2c07fca260b7df5118da7b5bdd5afc Mon Sep 17 00:00:00 2001 From: Matthew Grasmick Date: Thu, 14 Apr 2022 07:55:29 -0400 Subject: [PATCH] Fixes #907: api:applications:environment-create breaks if provides all arguments/options.. (#908) --- src/Command/Api/ApiCommandBase.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Command/Api/ApiCommandBase.php b/src/Command/Api/ApiCommandBase.php index 097b8328f..cf47b0277 100644 --- a/src/Command/Api/ApiCommandBase.php +++ b/src/Command/Api/ApiCommandBase.php @@ -235,11 +235,11 @@ protected function getParamFromInput(InputInterface $input, string $param_name) /** * @param array $param_spec - * @param string $value + * @param string|array $value * * @return bool|int|string */ - protected function castParamType(array $param_spec, string $value) { + protected function castParamType(array $param_spec, $value) { $type = $this->getParamType($param_spec); if (!$type) { return $value;