@@ -21,14 +21,14 @@ |
||
| 21 | 21 | * |
| 22 | 22 | * @var Iterator<TKey, TValue>|Indifferent<Iterator<TKey, TValue>> |
| 23 | 23 | */ |
| 24 | - private Iterator|Indifferent $origin; |
|
| 24 | + private Iterator | Indifferent $origin; |
|
| 25 | 25 | |
| 26 | 26 | /** |
| 27 | 27 | * Ctor. |
| 28 | 28 | * |
| 29 | 29 | * @param Iterator<TKey, TValue>|Indifferent<Iterator<TKey, TValue>> $iterable |
| 30 | 30 | */ |
| 31 | - public function __construct(Iterator|Indifferent $iterable) |
|
| 31 | + public function __construct(Iterator | Indifferent $iterable) |
|
| 32 | 32 | { |
| 33 | 33 | $this->origin = $iterable; |
| 34 | 34 | } |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | parent::__construct( |
| 26 | 26 | $subject, |
| 27 | 27 | $context, |
| 28 | - function (mixed $subject, Closure $context): mixed |
|
| 28 | + function(mixed $subject, Closure $context): mixed |
|
| 29 | 29 | { |
| 30 | 30 | $context($subject); |
| 31 | 31 | return $subject; |
@@ -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 | } |
@@ -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 | + } |
|
@@ -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 | } |