Skip to content

Commit

Permalink
Use correct array annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
mattamon committed Jan 8, 2025
1 parent 8bb369a commit 36a6887
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/DataObject/Data/Adapter/ObjectBricksAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,10 @@ public function normalize(
continue;
}

$resultItems[$type] = [];
foreach ($definition->getFieldDefinitions() as $brickFieldDefinition) {
$getter = 'get' . ucfirst($brickFieldDefinition->getName());
$value = $item->$getter();
$resultItems[$brickFieldDefinition->getName()] = $this->dataService->getNormalizedValue(
$resultItems[$type][$brickFieldDefinition->getName()] = $this->dataService->getNormalizedValue(
$value,
$brickFieldDefinition,
);
Expand Down

0 comments on commit 36a6887

Please sign in to comment.