Total Complexity | 2 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
11 | final class Monoid |
||
12 | { |
||
13 | /** |
||
14 | * @template T |
||
15 | * |
||
16 | * @param Set<T> $values |
||
17 | * @param callable(T, T): bool $equals |
||
18 | * |
||
19 | * @return Set<Property> |
||
20 | */ |
||
21 | public static function properties(Set $values, callable $equals): Set |
||
22 | { |
||
23 | return Set\Properties::chooseFrom( |
||
24 | new Set\Either(...self::list($values, $equals)), |
||
25 | Set\Integers::between(1, 10), |
||
26 | ); |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * @template T |
||
31 | * |
||
32 | * @param Set<T> $values |
||
33 | * @param callable(T, T): bool $equals |
||
34 | * |
||
35 | * @return list<Property> |
||
|
|||
36 | */ |
||
37 | public static function list(Set $values, callable $equals): array |
||
42 | ]; |
||
43 | } |
||
45 |
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