Skip to content

Commit

Permalink
docs: Minor typing update.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Mar 10, 2021
1 parent f620859 commit 5aa1d02
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Operation/DropWhile.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
final class DropWhile extends AbstractOperation
{
/**
* @psalm-return Closure(callable(T , TKey ): bool ...):Closure (Iterator<TKey, T>): Generator<TKey, T>
* @psalm-return Closure(callable(T, TKey): bool ...): Closure (Iterator<TKey, T>): Generator<TKey, T>
*/
public function __invoke(): Closure
{
Expand Down
1 change: 0 additions & 1 deletion src/Operation/Pluck.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/Operation/Span.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
final class Span extends AbstractOperation
{
/**
* @psalm-return Closure(callable(T , TKey, Iterator<TKey, T>): bool):Closure (Iterator<TKey, T>): Generator<int, Iterator<TKey, T>>
* @psalm-return Closure(callable(T, TKey, Iterator<TKey, T>): bool):Closure (Iterator<TKey, T>): Generator<int, Iterator<TKey, T>>
*/
public function __invoke(): Closure
{
Expand Down
2 changes: 1 addition & 1 deletion src/Operation/TakeWhile.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
final class TakeWhile extends AbstractOperation
{
/**
* @psalm-return Closure(callable(T , TKey, Iterator<TKey, T>): bool):Closure (Iterator<TKey, T>): Generator<TKey, T>
* @psalm-return Closure(callable(T, TKey, Iterator<TKey, T>): bool):Closure (Iterator<TKey, T>): Generator<TKey, T>
*/
public function __invoke(): Closure
{
Expand Down

0 comments on commit 5aa1d02

Please sign in to comment.