| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public function __invoke(): Closure |
||
| 27 | { |
||
| 28 | return |
||
| 29 | /** |
||
| 30 | * @psalm-param callable(NewAType): Closure(NewBType): NewCType $f |
||
| 31 | * |
||
| 32 | * @psalm-return Closure(callable(NewBType): NewAType): Closure(NewBType): NewCType |
||
| 33 | */ |
||
| 34 | static function (callable $f): Closure { |
||
| 35 | return static function (callable $g) use ($f): Closure { |
||
| 36 | return static function ($x) use ($f, $g) { |
||
| 37 | return $f($g($x))($x); |
||
| 38 | }; |
||
| 43 |