bearsunday /
BEAR.Resource
| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types=1); |
||
| 4 | |||
| 5 | namespace BEAR\Resource; |
||
| 6 | |||
| 7 | /** |
||
| 8 | * Sends a HTTP request |
||
| 9 | * |
||
| 10 | * @psalm-import-type Query from Types |
||
| 11 | * @psalm-import-type HttpHeaders from Types |
||
| 12 | * @psalm-import-type HttpBody from Types |
||
| 13 | * @psalm-import-type HttpResponse from Types |
||
| 14 | */ |
||
| 15 | interface HttpRequestInterface |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * Sends a HTTP request |
||
| 19 | * |
||
| 20 | * @param string $method The HTTP method (GET, POST, PUT, DELETE, etc.). |
||
| 21 | * @param string $uri The URL of the request. |
||
| 22 | * @param Query $query An associative array of query parameters. |
||
|
0 ignored issues
–
show
|
|||
| 23 | * |
||
| 24 | * @return HttpResponse An associative array containing the response information. |
||
|
0 ignored issues
–
show
|
|||
| 25 | * - code: The HTTP response code. |
||
| 26 | * - headers: An array of response headers. |
||
| 27 | * - body: The parsed response body. |
||
| 28 | * - view: The raw response body. |
||
| 29 | */ |
||
| 30 | public function request(string $method, string $uri, array $query): array; |
||
| 31 | } |
||
| 32 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths