diff --git a/src/Collection/Sorter.php b/src/Collection/Sorter.php index 622773f..bd02b6d 100644 --- a/src/Collection/Sorter.php +++ b/src/Collection/Sorter.php @@ -10,7 +10,7 @@ class Sorter * * @return Collection */ - public function sort(CollectionInterface $collection, ComparatorInterface $comparator): Collection + public function sort(CollectionInterface $collection, ComparatorInterface $comparator): CollectionInterface { $nodes = $collection->toArray();