Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 1 |
Changes | 5 | ||
Bugs | 2 | Features | 0 |
1 | <?php |
||
21 | 16 | public function __invoke(): Closure |
|
22 | { |
||
23 | 16 | return |
|
24 | /** |
||
25 | * @param callable(T, TKey, iterable<TKey, T>): T ...$callbacks |
||
26 | * |
||
27 | * @return Closure(iterable<TKey, T>): Generator<TKey, bool> |
||
28 | */ |
||
29 | 16 | static fn (callable ...$callbacks): Closure => (new MatchOne())()(static fn (): bool => true)( |
|
30 | 16 | ...array_map( |
|
31 | 16 | static fn (callable $callback): callable => |
|
32 | /** |
||
33 | * @param T $value |
||
34 | * @param TKey $key |
||
|
|||
35 | * @param iterable<TKey, T> $iterable |
||
36 | */ |
||
37 | 16 | static fn (mixed $value, mixed $key, iterable $iterable): bool => $callback($value, $key, $iterable) === $value, |
|
38 | 16 | $callbacks |
|
39 | 16 | ) |
|
43 |
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