Fix sort methods signature

master 3.2.1
Julien Rosset 2 years ago
parent 696e4fa458
commit 9e35eb1ee4

@ -140,7 +140,7 @@ interface IImmutableCollection extends IteratorAggregate, JsonSerializable, Coun
* *
* @throws Throwable If an error occurs * @throws Throwable If an error occurs
*/ */
public function sort (Closure|IComparator|null $sorter = null): self; public function sort (Closure|IComparator|null $sorter = null): static;
/** /**
* Sort the elements by key * Sort the elements by key
* *
@ -154,7 +154,7 @@ interface IImmutableCollection extends IteratorAggregate, JsonSerializable, Coun
* *
* @throws Throwable If an error occurs * @throws Throwable If an error occurs
*/ */
public function sortByKey (Closure|IComparator $sorter): self; public function sortByKey (Closure|IComparator $sorter): static;
/** /**
* The list of all keys * The list of all keys

Loading…
Cancel
Save