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