@@ -19,5 +19,7 @@ |
||
19 | 19 | * @phpstan-return T |
20 | 20 | * @return mixed |
21 | 21 | */ |
22 | - public function do(Closure $context): mixed; |
|
23 | -} |
|
22 | + public function do { |
|
23 | + (Closure $context): mixed; |
|
24 | + } |
|
25 | + } |
@@ -47,9 +47,11 @@ |
||
47 | 47 | /** |
48 | 48 | * {@inheritDoc} |
49 | 49 | */ |
50 | - public function do(Closure $context): mixed |
|
50 | + public function do { |
|
51 | + (Closure $context): mixed |
|
51 | 52 | { |
52 | 53 | $context($this->subject); |
54 | + } |
|
53 | 55 | return $this->subject; |
54 | 56 | } |
55 | 57 | } |
@@ -44,8 +44,10 @@ |
||
44 | 44 | /** |
45 | 45 | * {@inheritDoc} |
46 | 46 | */ |
47 | - public function do(Closure $context): mixed |
|
47 | + public function do { |
|
48 | + (Closure $context): mixed |
|
48 | 49 | { |
49 | 50 | return $context($this->subject); |
50 | 51 | } |
52 | + } |
|
51 | 53 | } |