From 9e35eb1ee4befed7d9bdf92160ca6a1127b1826c Mon Sep 17 00:00:00 2001 From: Julien Rosset Date: Mon, 11 Sep 2023 12:33:36 +0200 Subject: [PATCH] Fix sort methods signature --- src/Collections/IImmutableCollection.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Collections/IImmutableCollection.php b/src/Collections/IImmutableCollection.php index 7f12f45..348ffbe 100644 --- a/src/Collections/IImmutableCollection.php +++ b/src/Collections/IImmutableCollection.php @@ -140,7 +140,7 @@ interface IImmutableCollection extends IteratorAggregate, JsonSerializable, Coun * * @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 * @@ -154,7 +154,7 @@ interface IImmutableCollection extends IteratorAggregate, JsonSerializable, Coun * * @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