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 committed Sep 30, 2024
1 parent 853b6ce commit 9806033
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 9806033

Please sign in to comment.