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)

fixtures/Set.php (1 issue)

1
<?php
2
declare(strict_types = 1);
3
4
namespace Fixtures\Innmind\Immutable;
5
6
use Innmind\BlackBox\Set as DataSet;
7
use Innmind\Immutable\{
8
    Set as Structure,
9
    Sequence as ISequence,
10
};
11
12
final class Set
13
{
14
    /**
15
     * @template I
16
     *
17
     * @param Set<I> $set
18
     *
19
     * @return Set<Structure<I>>
20
     */
21
    public static function of(DataSet $set, DataSet\Integers $sizes = null): DataSet
22
    {
23
        return DataSet\Decorate::immutable(
0 ignored issues
show
Bug Best Practice introduced by
The expression return Innmind\BlackBox\...on(...) { /* ... */ })) returns the type Innmind\BlackBox\Set\Decorate which is incompatible with the documented return type Fixtures\Innmind\Immutable\Set.
Loading history...
24
            static fn(array $values): Structure => Structure::of(...$values),
25
            DataSet\Sequence::of(
26
                $set,
27
                $sizes,
28
            )->filter(static function(array $values): bool {
29
                // checks unicity of values
30
                return ISequence::mixed(...$values)->size() === Structure::mixed(...$values)->size();
31
            }),
32
        );
33
    }
34
}
35