1 | <?php |
||
2 | |||
3 | declare(strict_types=1); |
||
4 | |||
5 | namespace IBM\Watson\Common; |
||
6 | |||
7 | use Psr\Http\Message\RequestInterface; |
||
8 | |||
9 | /** |
||
10 | * RequestBuilder is a wrapper for a message factory to create PSR-7 requests. |
||
11 | */ |
||
12 | interface RequestBuilderInterface |
||
13 | { |
||
14 | /** |
||
15 | * Create a PSR-7 request. |
||
16 | * |
||
17 | * @param string $method HTTP method type. |
||
18 | * @param string|UriInterface $uri Request path. |
||
0 ignored issues
–
show
|
|||
19 | * @param array $headers Request headers. |
||
20 | * @param resource|string|StreamInterface|null $body Request body. |
||
0 ignored issues
–
show
The type
IBM\Watson\Common\StreamInterface 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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths
Loading history...
|
|||
21 | * |
||
22 | * @return \Psr\Http\Message\RequestInterface |
||
23 | */ |
||
24 | public function create(string $method, $uri, array $headers = [], $body = null): RequestInterface; |
||
25 | } |
||
26 |
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