Issues (108)

src/HttpRequestInterface.php (1 issue)

Labels
Severity
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
 */
14
interface HttpRequestInterface
15
{
16
    /**
17
     * Sends a HTTP request
18
     *
19
     * @param string $method The HTTP method (GET, POST, PUT, DELETE, etc.).
20
     * @param string $uri    The URL of the request.
21
     * @param Query  $query  An associative array of query parameters.
0 ignored issues
show
The type BEAR\Resource\Query was not found. Maybe you did not declare it correctly or list all dependencies?

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:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
22
     *
23
     * @return array{body: HttpBody, code: int, headers: HttpHeaders, view: string}
24
     *      An associative array containing the response information.
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