Skip to content

Commit

Permalink
docs: Minor update in code typing.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Jun 26, 2021
1 parent 58d8035 commit c8ad466
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Operation/Coalesce.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
namespace loophp\collection\Operation;

use Closure;
use Generator;
use Iterator;

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

0 comments on commit c8ad466

Please sign in to comment.