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 Comparable |
||
12 | { |
||
13 | /** |
||
14 | * Fold the collection through a comparison operation, yielding the "highest" or "lowest" |
||
15 | * element as defined by the comparator callback. The callback takes a pair of two elements |
||
16 | * and should return the "highest" or "lowest" one as desired. |
||
17 | * |
||
18 | * If no custom logic is required for the comparison, the simpler `max` or `min` operations |
||
19 | * can be used instead. |
||
20 | * |
||
21 | * @see https://loophp-collection.readthedocs.io/en/stable/pages/api.html#compare |
||
22 | * |
||
23 | * @template V |
||
24 | * |
||
25 | * @param callable(T, T, TKey, iterable<TKey, T>): T $comparator |
||
26 | * @param V $default |
||
0 ignored issues
–
show
|
|||
27 | * |
||
28 | * @return T|V |
||
29 | */ |
||
30 | public function compare(callable $comparator, mixed $default = null); |
||
31 | } |
||
32 |
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