Issues (85)

src/Contract/Operation/Keyable.php (1 issue)

Labels
Severity
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 Keyable
12
{
13
    /**
14
     * Get the key of an item in the collection given a numeric index, default index is 0.
15
     *
16
     * @see https://loophp-collection.readthedocs.io/en/stable/pages/api.html#key
17
     *
18
     * @return TKey|null
0 ignored issues
show
The type loophp\collection\Contract\Operation\TKey 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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
19
     */
20
    public function key(int $index = 0);
21
}
22