@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Innmind\Immutable; |
5 | 5 |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Innmind\Immutable\Map; |
5 | 5 | |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | /** |
185 | 185 | * @param callable(T, S): void $function |
186 | 186 | */ |
187 | - public function foreach(callable $function): void |
|
187 | + public function foreach (callable $function): void |
|
188 | 188 | { |
189 | 189 | foreach ($this->pairs->iterator() as $pair) { |
190 | 190 | $function($pair->key(), $pair->value()); |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Innmind\Immutable\Sequence; |
5 | 5 | |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | /** |
183 | 183 | * @param callable(T): void $function |
184 | 184 | */ |
185 | - public function foreach(callable $function): void |
|
185 | + public function foreach (callable $function): void |
|
186 | 186 | { |
187 | 187 | foreach ($this->values as $value) { |
188 | 188 | $function($value); |
@@ -546,7 +546,7 @@ discard block |
||
546 | 546 | public function toSequenceOf(string $type, callable $mapper = null): Sequence |
547 | 547 | { |
548 | 548 | /** @psalm-suppress MissingParamType */ |
549 | - $mapper ??= static fn($v): \Generator => yield $v; |
|
549 | + $mapper ?? = static fn($v): \Generator => yield $v; |
|
550 | 550 | |
551 | 551 | /** @psalm-suppress MissingClosureParamType */ |
552 | 552 | return Sequence::defer( |
@@ -573,7 +573,7 @@ discard block |
||
573 | 573 | public function toSetOf(string $type, callable $mapper = null): Set |
574 | 574 | { |
575 | 575 | /** @psalm-suppress MissingParamType */ |
576 | - $mapper ??= static fn($v): \Generator => yield $v; |
|
576 | + $mapper ?? = static fn($v): \Generator => yield $v; |
|
577 | 577 | |
578 | 578 | /** @psalm-suppress MissingClosureParamType */ |
579 | 579 | return Set::defer( |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Innmind\Immutable\Sequence; |
5 | 5 | |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | /** |
155 | 155 | * @param callable(T): void $function |
156 | 156 | */ |
157 | - public function foreach(callable $function): void |
|
157 | + public function foreach (callable $function): void |
|
158 | 158 | { |
159 | 159 | foreach ($this->values as $value) { |
160 | 160 | $function($value); |
@@ -480,7 +480,7 @@ discard block |
||
480 | 480 | public function toSequenceOf(string $type, callable $mapper = null): Sequence |
481 | 481 | { |
482 | 482 | /** @psalm-suppress MissingParamType */ |
483 | - $mapper ??= static fn($v): \Generator => yield $v; |
|
483 | + $mapper ?? = static fn($v): \Generator => yield $v; |
|
484 | 484 | |
485 | 485 | /** @var Sequence<ST> */ |
486 | 486 | $sequence = Sequence::of($type); |
@@ -504,7 +504,7 @@ discard block |
||
504 | 504 | public function toSetOf(string $type, callable $mapper = null): Set |
505 | 505 | { |
506 | 506 | /** @psalm-suppress MissingParamType */ |
507 | - $mapper ??= static fn($v): \Generator => yield $v; |
|
507 | + $mapper ?? = static fn($v): \Generator => yield $v; |
|
508 | 508 | |
509 | 509 | /** @var Set<ST> */ |
510 | 510 | $set = Set::of($type); |