From 36a6887fb92dc4b8f4b046cf9581834687cabff6 Mon Sep 17 00:00:00 2001 From: mattamon Date: Wed, 8 Jan 2025 14:45:10 +0100 Subject: [PATCH] Use correct array annotation --- src/DataObject/Data/Adapter/ObjectBricksAdapter.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/DataObject/Data/Adapter/ObjectBricksAdapter.php b/src/DataObject/Data/Adapter/ObjectBricksAdapter.php index 64a04ae7..49cfaddf 100644 --- a/src/DataObject/Data/Adapter/ObjectBricksAdapter.php +++ b/src/DataObject/Data/Adapter/ObjectBricksAdapter.php @@ -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, );