meilisearch-php
meilisearch-php copied to clipboard
Complete return types in HTTP client
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: 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.php- Update
get(and similar methods) to include PHPDoc:@param array<string, scalar|list<scalar>> $query
- Update