Skip to content

Commit

Permalink
added conversion from array to object for the directory to row proper…
Browse files Browse the repository at this point in the history
…ty modifier
  • Loading branch information
MisterMountain authored and lippserd committed Nov 7, 2024
1 parent 2f888ba commit 28302f0
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ public function transform($value)
);
}
$result = [];
foreach ($value as $key => $properties) {
foreach ($value as $key => $properties) {
if (is_array($properties)) {
$properties = (object) $properties;
}
if (! is_object($properties)) {
throw new InvalidDataException(
sprintf('Nested "%s" dictionary', $key),
Expand Down

0 comments on commit 28302f0

Please sign in to comment.