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

Commit

Permalink
swap order
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-rubel committed Mar 29, 2022
1 parent 13b0eaa commit b792b40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Traits/LoopFunctions.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ public function arrayToProperties(array|\ArrayAccess|null $data, mixed $rescue =
collect($data ?? [])
->except($this->ignoredPropertyNames())
->each(function ($value, $key) use ($rescue) {
$this->assignValue($key, $value, $rescue);

if ($this->canWalkRecursively($value)) {
$this->propertiesFrom($value, $rescue);
}

$this->assignValue($key, $value, $rescue);
});
}
}

0 comments on commit b792b40

Please sign in to comment.