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

Commit b792b40

Browse files
committed
swap order
1 parent 13b0eaa commit b792b40

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
@@ -62,11 +62,11 @@ public function arrayToProperties(array|\ArrayAccess|null $data, mixed $rescue =
6262
collect($data ?? [])
6363
->except($this->ignoredPropertyNames())
6464
->each(function ($value, $key) use ($rescue) {
65+
$this->assignValue($key, $value, $rescue);
66+
6567
if ($this->canWalkRecursively($value)) {
6668
$this->propertiesFrom($value, $rescue);
6769
}
68-
69-
$this->assignValue($key, $value, $rescue);
7070
});
7171
}
7272
}

0 commit comments

Comments
 (0)