1 | <?php |
||
2 | declare(strict_types = 1); |
||
3 | |||
4 | namespace Properties\Innmind\Immutable; |
||
5 | |||
6 | use Innmind\BlackBox\{ |
||
7 | Set, |
||
8 | Property, |
||
9 | }; |
||
10 | |||
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> |
||
0 ignored issues
–
show
|
|||
36 | */ |
||
37 | public static function list(Set $values, callable $equals): array |
||
38 | { |
||
39 | return [ |
||
0 ignored issues
–
show
|
|||
40 | Monoid\Identity::any($values, $equals), |
||
41 | Monoid\Associativity::any($values, $equals), |
||
42 | ]; |
||
43 | } |
||
44 | } |
||
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