GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Issues (201)

properties/Monoid.php (1 issue)

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>
36
     */
37
    public static function list(Set $values, callable $equals): array
38
    {
39
        return [
0 ignored issues
show
Bug Best Practice introduced by
The expression return array(Properties\...:any($values, $equals)) returns the type array<integer,Innmind\Bl...\BlackBox\Set\Decorate> which is incompatible with the documented return type Properties\Innmind\Immutable\list.
Loading history...
40
            Monoid\Identity::any($values, $equals),
41
            Monoid\Associativity::any($values, $equals),
42
        ];
43
    }
44
}
45