Skip to content

Commit 331dc50

Browse files
committed
fix: update parameter names
1 parent ca05de7 commit 331dc50

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/SortIterator.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ public function __construct(iterable $iterable, private Closure $callback)
2727
}
2828

2929
/**
30-
* @param T $left
31-
* @param T $right
30+
* @param T $value1
31+
* @param T $value2
3232
*/
33-
protected function compare($left, $right): int
33+
protected function compare($value1, $value2): int
3434
{
35-
return ($this->callback)($left, $right);
35+
return ($this->callback)($value1, $value2);
3636
}
3737
}

0 commit comments

Comments
 (0)