1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/** |
4
|
|
|
* For the full copyright and license information, please view |
5
|
|
|
* the LICENSE file that was distributed with this source code. |
6
|
|
|
*/ |
7
|
|
|
|
8
|
|
|
declare(strict_types=1); |
9
|
|
|
|
10
|
|
|
namespace loophp\fpt; |
11
|
|
|
|
12
|
|
|
use Closure; |
13
|
|
|
use loophp\fpt\Contract\FPTInterface; |
14
|
|
|
|
15
|
|
|
/** |
16
|
|
|
* @psalm-immutable |
17
|
|
|
*/ |
18
|
|
|
final class FPT implements FPTInterface |
19
|
|
|
{ |
20
|
|
|
/** |
21
|
|
|
* @psalm-pure |
22
|
|
|
*/ |
23
|
1 |
|
public static function arg(): Closure |
24
|
|
|
{ |
25
|
1 |
|
return Arg::of(); |
26
|
|
|
} |
27
|
|
|
|
28
|
|
|
/** |
29
|
|
|
* @psalm-pure |
30
|
|
|
*/ |
31
|
1 |
|
public static function args(): Closure |
32
|
|
|
{ |
33
|
1 |
|
return Args::of(); |
34
|
|
|
} |
35
|
|
|
|
36
|
|
|
/** |
37
|
|
|
* @psalm-pure |
38
|
|
|
*/ |
39
|
1 |
|
public static function compose(): Closure |
40
|
|
|
{ |
41
|
1 |
|
return Compose::of(); |
42
|
|
|
} |
43
|
|
|
|
44
|
|
|
/** |
45
|
|
|
* @psalm-pure |
46
|
|
|
*/ |
47
|
1 |
|
public static function current(): Closure |
48
|
|
|
{ |
49
|
1 |
|
return Current::of(); |
50
|
|
|
} |
51
|
|
|
|
52
|
|
|
/** |
53
|
|
|
* @psalm-pure |
54
|
|
|
*/ |
55
|
1 |
|
public static function curry(): Closure |
56
|
|
|
{ |
57
|
1 |
|
return Curry::of(); |
58
|
|
|
} |
59
|
|
|
|
60
|
|
|
/** |
61
|
|
|
* @psalm-pure |
62
|
|
|
*/ |
63
|
1 |
|
public static function end(): Closure |
64
|
|
|
{ |
65
|
1 |
|
return End::of(); |
66
|
|
|
} |
67
|
|
|
|
68
|
|
|
/** |
69
|
|
|
* @psalm-pure |
70
|
|
|
*/ |
71
|
3 |
|
public static function filter(): Closure |
72
|
|
|
{ |
73
|
3 |
|
return Filter::of(); |
74
|
|
|
} |
75
|
|
|
|
76
|
|
|
/** |
77
|
|
|
* @psalm-pure |
78
|
|
|
*/ |
79
|
1 |
|
public static function flip(): Closure |
80
|
|
|
{ |
81
|
1 |
|
return Flip::of(); |
82
|
|
|
} |
83
|
|
|
|
84
|
|
|
/** |
85
|
|
|
* @psalm-pure |
86
|
|
|
*/ |
87
|
1 |
|
public static function fold(): Closure |
88
|
|
|
{ |
89
|
1 |
|
return Fold::of(); |
90
|
|
|
} |
91
|
|
|
|
92
|
|
|
/** |
93
|
|
|
* @psalm-pure |
94
|
|
|
* |
95
|
1 |
|
* @psalm-template T |
96
|
|
|
* |
97
|
1 |
|
* @psalm-return Closure(T): T |
98
|
|
|
*/ |
99
|
|
|
public static function identity(): Closure |
100
|
|
|
{ |
101
|
|
|
return Identity::of(); |
102
|
|
|
} |
103
|
|
|
|
104
|
|
|
/** |
105
|
|
|
* @psalm-pure |
106
|
|
|
* |
107
|
1 |
|
* @psalm-template TKey |
108
|
|
|
* @psalm-template T |
109
|
1 |
|
* @psalm-template U |
110
|
|
|
* |
111
|
|
|
* @psalm-return Closure(callable(T, TKey, iterable<TKey, T>): U) |
112
|
|
|
*/ |
113
|
|
|
public static function map(): Closure |
114
|
|
|
{ |
115
|
|
|
return Map::of(); |
116
|
|
|
} |
117
|
|
|
|
118
|
|
|
/** |
119
|
|
|
* @psalm-pure |
120
|
|
|
*/ |
121
|
1 |
|
public static function nary(): Closure |
122
|
|
|
{ |
123
|
1 |
|
return Nary::of(); |
124
|
|
|
} |
125
|
|
|
|
126
|
|
|
/** |
127
|
|
|
* @psalm-pure |
128
|
|
|
* |
129
|
1 |
|
* @psalm-template T |
130
|
|
|
* @psalm-template U |
131
|
1 |
|
* |
132
|
|
|
* @psalm-return Closure(callable(T...): U): Closure(mixed): bool |
133
|
|
|
*/ |
134
|
|
|
public static function not(): Closure |
135
|
|
|
{ |
136
|
|
|
return Not::of(); |
137
|
|
|
} |
138
|
|
|
|
139
|
|
|
/** |
140
|
|
|
* @psalm-pure |
141
|
|
|
*/ |
142
|
1 |
|
public static function operator(): Closure |
143
|
|
|
{ |
144
|
1 |
|
return Operator::of(); |
145
|
|
|
} |
146
|
|
|
|
147
|
|
|
/** |
148
|
|
|
* @psalm-pure |
149
|
|
|
*/ |
150
|
1 |
|
public static function partial(): Closure |
151
|
|
|
{ |
152
|
1 |
|
return Partial::of(); |
|
|
|
|
153
|
|
|
} |
154
|
|
|
|
155
|
|
|
/** |
156
|
|
|
* @psalm-pure |
157
|
|
|
*/ |
158
|
1 |
|
public static function reduce(): Closure |
159
|
|
|
{ |
160
|
1 |
|
return Reduce::of(); |
161
|
|
|
} |
162
|
|
|
|
163
|
|
|
/** |
164
|
|
|
* @psalm-pure |
165
|
|
|
*/ |
166
|
1 |
|
public static function reduction(): Closure |
167
|
|
|
{ |
168
|
1 |
|
return Reduction::of(); |
169
|
|
|
} |
170
|
|
|
|
171
|
|
|
/** |
172
|
|
|
* @psalm-pure |
173
|
|
|
*/ |
174
|
1 |
|
public static function thunk(): Closure |
175
|
|
|
{ |
176
|
1 |
|
return Thunk::of(); |
177
|
|
|
} |
178
|
|
|
|
179
|
|
|
/** |
180
|
|
|
* @psalm-pure |
181
|
|
|
*/ |
182
|
2 |
|
public static function uncurry(): Closure |
183
|
|
|
{ |
184
|
2 |
|
return Uncurry::of(); |
185
|
|
|
} |
186
|
|
|
|
187
|
|
|
/** |
188
|
|
|
* @psalm-pure |
189
|
|
|
*/ |
190
|
1 |
|
public static function wrap(): Closure |
191
|
|
|
{ |
192
|
1 |
|
return Wrap::of(); |
193
|
|
|
} |
194
|
|
|
} |
195
|
|
|
|
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