Issues (85)

src/Contract/Operation/Maxable.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 Maxable
12
{
13
    /**
14
     * Generate the maximum value of the collection by successively applying the PHP `max` function
15
     * to each pair of two elements.
16
     *
17
     * If custom logic is required to determine the maximum, such as when comparing objects,
18
     * the `compare` operation can be used instead.
19
     *
20
     * @see https://www.php.net/manual/en/function.max.php
21
     * @see https://loophp-collection.readthedocs.io/en/stable/pages/api.html#max
22
     *
23
     * @template V
24
     *
25
     * @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...
26
     *
27
     * @return T|V
28
     */
29
    public function max(mixed $default = null);
30
}
31