Skip to content

Commit

Permalink
Merge pull request #14 from TheDragonCode/1.x
Browse files Browse the repository at this point in the history
Bump property type
  • Loading branch information
andrey-helldar authored Feb 21, 2023
2 parents b003e1d + f8d7446 commit c1fece8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Sorter.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace DragonCode\SizeSorter;

use ArrayAccess;
use DragonCode\SizeSorter\Enum\Group;
use DragonCode\SizeSorter\Services\Collection;
use DragonCode\SizeSorter\Services\GroupsDetector;
Expand All @@ -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))
Expand Down

0 comments on commit c1fece8

Please sign in to comment.