From f8d7446e72f4fc1ffd01def19487c7682692dbd0 Mon Sep 17 00:00:00 2001 From: Andrey Helldar Date: Tue, 21 Feb 2023 15:30:33 +0300 Subject: [PATCH] Bump property type --- src/Sorter.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Sorter.php b/src/Sorter.php index a6ab0f3..cd21171 100644 --- a/src/Sorter.php +++ b/src/Sorter.php @@ -4,7 +4,6 @@ namespace DragonCode\SizeSorter; -use ArrayAccess; use DragonCode\SizeSorter\Enum\Group; use DragonCode\SizeSorter\Services\Collection; use DragonCode\SizeSorter\Services\GroupsDetector; @@ -16,7 +15,7 @@ class Sorter { - public static function sort(array|ArrayAccess|IC $items, string $column = 'value', ?array $groupsOrder = null): IC + public static function sort(iterable $items, string $column = 'value', ?array $groupsOrder = null): IC { return static::flatten( static::handle(collect($items), $column, Order::resolve($groupsOrder))