Skip to content

Commit

Permalink
fix: Fix Psalm annotations.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Apr 20, 2021
1 parent a53167d commit 4ace8ef
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Operation/Coalesce.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
namespace loophp\collection\Operation;

use Closure;
use Generator;

/**
* @psalm-template TKey
Expand All @@ -15,11 +14,11 @@
final class Coalesce extends AbstractOperation
{
/**
* @psalm-return Closure(Iterator<TKey, T>): Generator<TKey, T>
* @psalm-return Closure(\Iterator<TKey, T>): \Generator<TKey, T>
*/
public function __invoke(): Closure
{
/** @psalm-var Closure(Iterator<TKey, T>): Generator<TKey, T> $pipe */
/** @psalm-var Closure(\Iterator<TKey, T>): \Generator<TKey, T> $pipe */
$pipe = Pipe::of()(
Compact::of()(),
Head::of(),
Expand Down

0 comments on commit 4ace8ef

Please sign in to comment.