bearsunday /
BEAR.Sunday
| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types=1); |
||
| 4 | |||
| 5 | namespace BEAR\Sunday\Extension\Router; |
||
| 6 | |||
| 7 | use BEAR\Sunday\Extension\ExtensionInterface; |
||
| 8 | |||
| 9 | /** |
||
| 10 | * @psalm-type Globals = array{ |
||
| 11 | * _GET: array<string, mixed>, |
||
| 12 | * _POST: array<string, mixed> |
||
| 13 | * } |
||
| 14 | * @psalm-type Server = array{ |
||
| 15 | * REQUEST_URI: string, |
||
| 16 | * REQUEST_METHOD: string, |
||
| 17 | * CONTENT_TYPE?: string, |
||
| 18 | * HTTP_CONTENT_TYPE?: string, |
||
| 19 | * HTTP_RAW_POST_DATA?: string |
||
| 20 | * } |
||
| 21 | */ |
||
| 22 | interface RouterInterface extends ExtensionInterface |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * @param Globals $globals |
||
|
0 ignored issues
–
show
|
|||
| 26 | * @param Server $server |
||
|
0 ignored issues
–
show
The type
BEAR\Sunday\Extension\Router\Server 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...
|
|||
| 27 | * |
||
| 28 | * @return RouterMatch |
||
| 29 | */ |
||
| 30 | public function match(array $globals, array $server); |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param string $name the route name to look up |
||
| 34 | * @param array<string, mixed> $data the data to interpolate into the URI; data keys map to param tokens in the path |
||
| 35 | * |
||
| 36 | * @return false|string returns a URI when it finds a name, or boolean false if there is no route name |
||
| 37 | */ |
||
| 38 | public function generate($name, $data); |
||
| 39 | } |
||
| 40 |
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