1 | <?php |
||
2 | |||
3 | declare(strict_types=1); |
||
4 | |||
5 | namespace Usox\JsonSchemaApi\Contract; |
||
6 | |||
7 | use Psr\Http\Message\ServerRequestInterface; |
||
8 | use Usox\JsonSchemaApi\Exception\ApiMethodException; |
||
9 | |||
10 | /** |
||
11 | * @template TParameter of object |
||
12 | * @template TResult of array |
||
13 | */ |
||
14 | interface ApiMethodInterface |
||
15 | { |
||
16 | /** |
||
17 | * This method contains the business logic of the api method |
||
18 | * |
||
19 | * @param TParameter $parameter The method parameter as described in the schema |
||
0 ignored issues
–
show
|
|||
20 | * |
||
21 | * @return TResult The api method response |
||
0 ignored issues
–
show
The type
Usox\JsonSchemaApi\Contract\TResult 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 ![]() |
|||
22 | * |
||
23 | * @throws ApiMethodException |
||
24 | */ |
||
25 | public function handle( |
||
26 | ServerRequestInterface $request, |
||
27 | object $parameter, |
||
28 | ): array; |
||
29 | |||
30 | /** |
||
31 | * Return the absolute path to the corresponding json schema |
||
32 | */ |
||
33 | public function getSchemaFile(): string; |
||
34 | } |
||
35 |
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