Issues (85)

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

Labels
Severity
1
<?php
2
3
declare(strict_types=1);
4
5
namespace loophp\collection\Contract\Operation;
6
7
use loophp\collection\Contract\Collection;
8
9
/**
10
 * @template TKey
11
 * @template T
12
 */
13
interface ScanRightable
14
{
15
    /**
16
     * Takes the initial value and the last item of the list and applies the function,
17
     * then it takes the penultimate item from the end and the result, and so on.
18
     * It returns the list of intermediate and final results.
19
     *
20
     * @see https://loophp-collection.readthedocs.io/en/stable/pages/api.html#scanright
21
     *
22
     * @template V
23
     *
24
     * @param callable(V, T, TKey, iterable<TKey, T>): V $callback
25
     * @param V $initial
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...
26
     *
27
     * @return Collection<TKey|int, V>
28
     */
29
    public function scanRight(callable $callback, mixed $initial): Collection;
30
}
31