Issues (85)

src/Contract/Operation/Currentable.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 Currentable
12
{
13
    /**
14
     * Get the value of an item in the collection given a numeric index or the default `0`.
15
     *
16
     * @see https://loophp-collection.readthedocs.io/en/stable/pages/api.html#current
17
     *
18
     * @template V
19
     *
20
     * @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. 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...
21
     *
22
     * @return T|V
23
     */
24
    public function current(int $index = 0, mixed $default = null);
25
}
26