bearsunday /
BEAR.Package
| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types=1); |
||
| 4 | |||
| 5 | namespace BEAR\Package\Provide\Router; |
||
| 6 | |||
| 7 | use BEAR\Package\Types; |
||
| 8 | |||
| 9 | /** |
||
| 10 | * @psalm-import-type ServerArray from Types |
||
| 11 | * @psalm-import-type QueryParams from Types |
||
| 12 | */ |
||
| 13 | interface HttpMethodParamsInterface |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * Return http method and parameters |
||
| 17 | * |
||
| 18 | * 'parameters' change by method. |
||
| 19 | * get method return $_GET, post method return $_POST |
||
| 20 | * patch | put | delete return parsed 'php://input' value if form-urlencoded or json content |
||
| 21 | * |
||
| 22 | * @param array{REQUEST_METHOD: string, HTTP_X_HTTP_METHOD_OVERRIDE?: string, ...} $server $_SERVER |
||
| 23 | * @param QueryParams $get $_GET |
||
|
0 ignored issues
–
show
|
|||
| 24 | * @param QueryParams $post $_POST |
||
| 25 | * |
||
| 26 | * @return array{0: string, 1: QueryParams} |
||
| 27 | */ |
||
| 28 | // phpcs:ignore Squiz.Commenting.FunctionComment.MissingParamName |
||
| 29 | public function get(array $server, array $get, array $post); |
||
| 30 | } |
||
| 31 |
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