Conditions | 1 |
Paths | 1 |
Total Lines | 25 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 1 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
37 | 1 | public function __invoke() |
|
38 | { |
||
39 | 1 | $callable = $this->f; |
|
40 | |||
41 | /** |
||
42 | * @psalm-suppress MissingClosureReturnType |
||
43 | * |
||
44 | * @param callable $f |
||
45 | * |
||
46 | * @return mixed |
||
47 | */ |
||
48 | $f = static function (callable $f) use ($callable) { |
||
49 | 1 | return $callable( |
|
50 | /** |
||
51 | * @psalm-suppress MissingClosureParamType |
||
52 | * |
||
53 | * @param array $arguments |
||
54 | */ |
||
55 | static function (...$arguments) use ($f) { |
||
56 | 1 | return $f($f)(...$arguments); |
|
57 | 1 | } |
|
58 | ); |
||
59 | 1 | }; |
|
60 | |||
61 | 1 | return $f($f); |
|
62 | } |
||
64 |