Skip to content
This repository was archived by the owner on Mar 12, 2024. It is now read-only.

Commit d9a7ff8

Browse files
committed
Update condition for canWalkRecursively 🔧
1 parent 1f5ca5c commit d9a7ff8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/Traits/HelpsLoopFunctions.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ private function hasDefaultValue(int|string $key): bool
7575
*/
7676
private function canWalkRecursively(mixed $value): bool
7777
{
78-
return is_array($value) || $value instanceof \ArrayAccess;
78+
return is_iterable($value);
7979
}
8080

8181
/**

0 commit comments

Comments
 (0)