Skip to content

Commit

Permalink
CS.
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue committed Apr 1, 2022
1 parent 15b9acc commit b8a9458
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Traits/Liker.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public function attachLikeStatus($likeables, callable $resolver = null)
$likeables = \collect($likeables->items());
break;
case $likeables instanceof LazyCollection:
$likeables = \collect(\iterator_to_array($likeables->getIterator()));
$likeables = \collect($likeables->all());
break;
case \is_array($likeables):
$likeables = \collect($likeables);
Expand Down

0 comments on commit b8a9458

Please sign in to comment.