diff --git a/src/Operation/DropWhile.php b/src/Operation/DropWhile.php index 0896a207e..d0a921a4b 100644 --- a/src/Operation/DropWhile.php +++ b/src/Operation/DropWhile.php @@ -18,7 +18,7 @@ final class DropWhile extends AbstractOperation { /** - * @psalm-return Closure(callable(T , TKey ): bool ...):Closure (Iterator): Generator + * @psalm-return Closure(callable(T, TKey): bool ...): Closure (Iterator): Generator */ public function __invoke(): Closure { diff --git a/src/Operation/Pluck.php b/src/Operation/Pluck.php index 73f474714..63973b668 100644 --- a/src/Operation/Pluck.php +++ b/src/Operation/Pluck.php @@ -99,7 +99,6 @@ static function (Iterator $iterator, $target, array $key, $default = null) use ( /** @psalm-var T $target */ $target = (new ReflectionClass($target))->getProperty($segment)->getValue($target); } else { - /** @psalm-var T $target */ $target = $default; } } diff --git a/src/Operation/Span.php b/src/Operation/Span.php index b06ecb041..b1c28f472 100644 --- a/src/Operation/Span.php +++ b/src/Operation/Span.php @@ -18,7 +18,7 @@ final class Span extends AbstractOperation { /** - * @psalm-return Closure(callable(T , TKey, Iterator): bool):Closure (Iterator): Generator> + * @psalm-return Closure(callable(T, TKey, Iterator): bool):Closure (Iterator): Generator> */ public function __invoke(): Closure { diff --git a/src/Operation/TakeWhile.php b/src/Operation/TakeWhile.php index 80df600fc..1a39ee962 100644 --- a/src/Operation/TakeWhile.php +++ b/src/Operation/TakeWhile.php @@ -18,7 +18,7 @@ final class TakeWhile extends AbstractOperation { /** - * @psalm-return Closure(callable(T , TKey, Iterator): bool):Closure (Iterator): Generator + * @psalm-return Closure(callable(T, TKey, Iterator): bool):Closure (Iterator): Generator */ public function __invoke(): Closure {