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

Commit da513e7

Browse files
committed
fix recursion
1 parent f29620f commit da513e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Traits/LoopFunctions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ public function arrayToProperties(?array $data, mixed $rescue = null): void
4646
collect($data ?? [])
4747
->except($this->ignoreKeys())
4848
->each(
49-
fn ($value, $key) => is_array($key)
50-
? $this->arrayToProperties($key, $rescue)
49+
fn ($value, $key) => is_array($value)
50+
? $this->arrayToProperties($value, $rescue)
5151
: $this->assignValue($key, $value, $rescue)
5252
);
5353
}

0 commit comments

Comments
 (0)