The HTTP Client and Contract interface need more specific return types and PHPDoc annotations.
Files & Actions:
-
src/Http/Client.php
execute(RequestInterface $request, array $headers = []): Add return type : mixed or PHPDoc @return array|null.
parseResponse(ResponseInterface $response): Add return type : mixed or PHPDoc @return array|null.
buildQueryString(array $queryParams = []): Add PHPDoc @param array<string, mixed> $queryParams.
-
src/Contracts/Http.php
- Update
get (and similar methods) to include PHPDoc:
@param array<string, scalar|list<scalar>> $query
The HTTP Client and Contract interface need more specific return types and PHPDoc annotations.
Files & Actions:
src/Http/Client.phpexecute(RequestInterface $request, array $headers = []): Add return type: mixedor PHPDoc@return array|null.parseResponse(ResponseInterface $response): Add return type: mixedor PHPDoc@return array|null.buildQueryString(array $queryParams = []): Add PHPDoc@param array<string, mixed> $queryParams.src/Contracts/Http.phpget(and similar methods) to include PHPDoc:@param array<string, scalar|list<scalar>> $query