Total Complexity | 4 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
21 | class MiddlewareHandler implements MiddlewareHandlerInterface |
||
22 | { |
||
23 | |||
24 | public function __construct( |
||
25 | protected string $name, |
||
26 | protected MiddlewarePosition $position, |
||
|
|||
27 | protected string|MiddlewareInterface|\Closure $middleware |
||
28 | ) { |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * @inheritDoc |
||
33 | */ |
||
34 | public function name(): string |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * @inheritDoc |
||
41 | */ |
||
42 | public function middlewarePosition(): MiddlewarePosition |
||
43 | { |
||
44 | return $this->position; |
||
45 | } |
||
46 | |||
47 | /** |
||
48 | * @inheritDoc |
||
49 | */ |
||
50 | public function handler(): string|callable|MiddlewareInterface |
||
53 | } |
||
54 | } |
||
55 |
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