From b8a9458d11363ea564d0f5b2862956e59238d09d Mon Sep 17 00:00:00 2001 From: overtrue Date: Fri, 1 Apr 2022 10:26:06 +0800 Subject: [PATCH] CS. --- src/Traits/Liker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Traits/Liker.php b/src/Traits/Liker.php index 2a64549..449e748 100644 --- a/src/Traits/Liker.php +++ b/src/Traits/Liker.php @@ -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);