Skip to content

Commit

Permalink
remove mixed case
Browse files Browse the repository at this point in the history
  • Loading branch information
danepowell committed Dec 8, 2023
1 parent 0a737f3 commit 2106495
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Command/Api/ApiBaseCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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,
};
}

Expand Down

0 comments on commit 2106495

Please sign in to comment.