loophp /
collection
| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types=1); |
||
| 4 | |||
| 5 | namespace loophp\collection\Operation; |
||
| 6 | |||
| 7 | use Closure; |
||
| 8 | use Generator; |
||
| 9 | |||
| 10 | use function in_array; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @immutable |
||
| 14 | * |
||
| 15 | * @template TKey |
||
| 16 | * @template T |
||
| 17 | */ |
||
| 18 | final class IntersectKeys extends AbstractOperation |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @return Closure(array<TKey>): Closure(iterable<TKey, T>): Generator<TKey, T> |
||
| 22 | */ |
||
| 23 | 6 | public function __invoke(): Closure |
|
| 24 | { |
||
| 25 | 6 | return |
|
| 26 | /** |
||
| 27 | * @param array<TKey> $keys |
||
| 28 | * |
||
| 29 | * @return Closure(iterable<TKey, T>): Generator<TKey, T> |
||
| 30 | */ |
||
| 31 | 6 | static fn (array $keys): Closure => (new Filter())()( |
|
| 32 | /** |
||
| 33 | * @param T $value |
||
| 34 | * @param TKey $key |
||
|
0 ignored issues
–
show
|
|||
| 35 | */ |
||
| 36 | 6 | static fn (mixed $value, mixed $key): bool => in_array($key, $keys, true) |
|
| 37 | 6 | ); |
|
| 38 | } |
||
| 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