1 | <?php |
||
2 | |||
3 | declare(strict_types=1); |
||
4 | |||
5 | namespace loophp\collection\Contract\Operation; |
||
6 | |||
7 | /** |
||
8 | * @template TKey |
||
9 | * @template T |
||
10 | */ |
||
11 | interface Getable |
||
12 | { |
||
13 | /** |
||
14 | * Get a specific element of the collection from a key; if the key doesn't exist, returns the default value. |
||
15 | * |
||
16 | * @see https://loophp-collection.readthedocs.io/en/stable/pages/api.html#get |
||
17 | * |
||
18 | * @template V |
||
19 | * |
||
20 | * @param TKey $key |
||
0 ignored issues
–
show
|
|||
21 | * @param V $default |
||
0 ignored issues
–
show
The type
loophp\collection\Contract\Operation\V 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 ![]() |
|||
22 | * |
||
23 | * @return T|V |
||
24 | */ |
||
25 | public function get(mixed $key, mixed $default = null); |
||
26 | } |
||
27 |
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