Skip to content

Commit

Permalink
docs: Update annotations.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Oct 4, 2020
1 parent ea9a8f1 commit 39ad38f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Operation/Distinct.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@ public function __invoke(): Closure

$filterCallback =
/**
* @psalm-param T $value
*
* @param mixed $value
* @psalm-param T $value
*/
static function ($value) use (&$seen): bool {
/** @psalm-var list<T> $seen */
Expand All @@ -40,7 +39,7 @@ static function ($value) use (&$seen): bool {
return $return;
};

/** @psalm-var Closure(Iterator<TKey, T>): Generator<TKey, T> $compose */
/** @psalm-var Closure(Iterator<TKey, T>): Generator<TKey, T> $filter */
$filter = Filter::of()($filterCallback);

return $filter;
Expand Down

0 comments on commit 39ad38f

Please sign in to comment.