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 | |||
14 | // phpcs:disable Generic.Files.LineLength.TooLong |
||
15 | |||
16 | /** |
||
17 | * @psalm-immutable |
||
18 | * |
||
19 | * @template T |
||
20 | * @template U |
||
21 | * @template V |
||
22 | */ |
||
23 | final class Compose |
||
24 | { |
||
25 | /** |
||
26 | * @pure |
||
27 | */ |
||
28 | 2 | public static function of(): Closure |
|
29 | { |
||
30 | return Fold::of()(Compose::of1())(Identity::of()); |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * @pure |
||
35 | */ |
||
36 | 2 | private static function of1(): Closure |
|
37 | { |
||
38 | return |
||
39 | 2 | /** |
|
40 | * @param callable(U): V $f |
||
41 | */ |
||
42 | static fn (callable $f): Closure => |
||
43 | /** |
||
44 | * @param callable(...T): U $g |
||
45 | 2 | */ |
|
46 | static fn (callable $g): Closure => |
||
47 | /** |
||
48 | * @param T ...$x |
||
49 | 2 | * |
|
50 | * @return V |
||
0 ignored issues
–
show
|
|||
51 | */ |
||
52 | static fn (...$x): mixed => $f($g(...$x)); |
||
53 | } |
||
54 | } |
||
55 |
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