Skip to content

Commit

Permalink
fix: Compare operation - fix sa
Browse files Browse the repository at this point in the history
New errors were spotted with PSalm 4.30.0.
  • Loading branch information
drupol committed Nov 7, 2022
1 parent ea90e23 commit 06729d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Contract/Operation/Comparable.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ interface Comparable
*
* @template V
*
* @param callable(T, T): T $comparator
* @param callable(T, T, TKey, iterable<TKey, T>): T $comparator
* @param V $default
*
* @return T|V
Expand Down
4 changes: 2 additions & 2 deletions src/Operation/Compare.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
final class Compare extends AbstractOperation
{
/**
* @return Closure(callable(T, T): T): Closure(iterable<TKey, T>): Generator<TKey, T>
* @return Closure(callable(T, T, TKey, iterable<TKey, T>): T): Closure(iterable<TKey, T>): Generator<TKey, T>
*/
public function __invoke(): Closure
{
return
/**
* @param callable(T, T): T $comparator
* @param callable(T, T, TKey, iterable<TKey, T>): T $comparator
*
* @return Closure(iterable<TKey, T>): Generator<TKey,T>
*/
Expand Down

0 comments on commit 06729d7

Please sign in to comment.