diff --git a/src/Command/Api/ApiBaseCommand.php b/src/Command/Api/ApiBaseCommand.php index f769c65d5..bb2b8cb5b 100644 --- a/src/Command/Api/ApiBaseCommand.php +++ b/src/Command/Api/ApiBaseCommand.php @@ -150,11 +150,11 @@ public function getMethod(): string { return $this->method; } - public function addPostParameter(mixed $paramName, mixed $value): void { + public function addPostParameter(string $paramName, mixed $value): void { $this->postParams[$paramName] = $value; } - public function addQueryParameter(mixed $paramName, mixed $value): void { + public function addQueryParameter(string $paramName, mixed $value): void { $this->queryParams[$paramName] = $value; } @@ -214,7 +214,6 @@ private function doCastParamType(string $type, mixed $value): array|bool|int|str 'array' => is_string($value) ? explode(',', $value) : (array) $value, 'string' => (string) $value, 'object' => json_decode($value, FALSE, 512, JSON_THROW_ON_ERROR), - 'mixed' => $value, }; }