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)

src/Set/Implementation.php (2 issues)

Labels
Severity
1
<?php
2
declare(strict_types = 1);
3
4
namespace Innmind\Immutable\Set;
5
6
use Innmind\Immutable\{
7
    Map,
8
    Sequence,
9
    Set,
10
    Str,
11
    Maybe,
12
    SideEffect,
13
};
14
15
/**
16
 * @template T
17
 * @psalm-immutable
18
 */
19
interface Implementation extends \Countable
20
{
21
    /**
22
     * Add a element to the set
23
     *
24
     * @param T $element
0 ignored issues
show
The type Innmind\Immutable\Set\T was not found. Maybe you did not declare it correctly or list all dependencies?

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:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
25
     *
26
     * @return self<T>
27
     */
28
    public function __invoke($element): self;
29
30
    public function size(): int;
31
32
    /**
33
     * @return \Iterator<int, T>
34
     */
35
    public function iterator(): \Iterator;
36
37
    /**
38
     * Intersect this set with the given one
39
     *
40
     * @param self<T> $set
41
     *
42
     * @return self<T>
43
     */
44
    public function intersect(self $set): self;
45
46
    /**
47
     * Check if the set contains the given element
48
     *
49
     * @param T $element
50
     */
51
    public function contains($element): bool;
52
53
    /**
54
     * Remove the element from the set
55
     *
56
     * @param T $element
57
     *
58
     * @return self<T>
59
     */
60
    public function remove($element): self;
61
62
    /**
63
     * Return the diff between this set and the given one
64
     *
65
     * @param self<T> $set
66
     *
67
     * @return self<T>
68
     */
69
    public function diff(self $set): self;
70
71
    /**
72
     * Check if the given set is identical to this one
73
     *
74
     * @param self<T> $set
75
     */
76
    public function equals(self $set): bool;
77
78
    /**
79
     * Return all elements that satisfy the given predicate
80
     *
81
     * @param callable(T): bool $predicate
82
     *
83
     * @return self<T>
84
     */
85
    public function filter(callable $predicate): self;
86
87
    /**
88
     * Apply the given function to all elements of the set
89
     *
90
     * @param callable(T): void $function
91
     */
92
    public function foreach(callable $function): SideEffect;
93
94
    /**
95
     * Return a new map of pairs grouped by keys determined with the given
96
     * discriminator function
97
     *
98
     * @template D
99
     *
100
     * @param callable(T): D $discriminator
101
     *
102
     * @return Map<D, Set<T>>
103
     */
104
    public function groupBy(callable $discriminator): Map;
105
106
    /**
107
     * Return a new set by applying the given function to all elements
108
     *
109
     * @template S
110
     *
111
     * @param callable(T): S $function
112
     *
113
     * @return self<S>
114
     */
115
    public function map(callable $function): self;
116
117
    /**
118
     * Return a sequence of 2 sets partitioned according to the given predicate
119
     *
120
     * @param callable(T): bool $predicate
121
     *
122
     * @return Map<bool, Set<T>>
123
     */
124
    public function partition(callable $predicate): Map;
125
126
    /**
127
     * Return a sequence sorted with the given function
128
     *
129
     * @param callable(T, T): int $function
130
     *
131
     * @return Sequence<T>
132
     */
133
    public function sort(callable $function): Sequence;
134
135
    /**
136
     * Create a new set with elements of both sets
137
     *
138
     * @param self<T> $set
139
     *
140
     * @return self<T>
141
     */
142
    public function merge(self $set): self;
143
144
    /**
145
     * Reduce the set to a single value
146
     *
147
     * @template R
148
     * @param R $carry
0 ignored issues
show
The type Innmind\Immutable\Set\R was not found. Maybe you did not declare it correctly or list all dependencies?

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:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
149
     * @param callable(R, T): R $reducer
150
     *
151
     * @return R
152
     */
153
    public function reduce($carry, callable $reducer);
154
155
    /**
156
     * Return a set of the same type but without any value
157
     *
158
     * @return self<T>
159
     */
160
    public function clear(): self;
161
    public function empty(): bool;
162
163
    /**
164
     * @param callable(T): bool $predicate
165
     *
166
     * @return Maybe<T>
167
     */
168
    public function find(callable $predicate): Maybe;
169
170
    /**
171
     * @return Sequence\Implementation<T>
172
     */
173
    public function sequence(): Sequence\Implementation;
174
}
175