diff --git a/src/Hydrator/Strategy/WebEntitiesStrategy.php b/src/Hydrator/Strategy/WebEntitiesStrategy.php index 13dfa7d..23c49d8 100644 --- a/src/Hydrator/Strategy/WebEntitiesStrategy.php +++ b/src/Hydrator/Strategy/WebEntitiesStrategy.php @@ -32,7 +32,11 @@ public function hydrate($value) $webEntities = []; foreach ($value as $webEntityInfo) { - $webEntities[] = new WebEntity($webEntityInfo['entityId'], $webEntityInfo['description'], isset($webEntityInfo['score']) ? $webEntityInfo['score'] : null); + $webEntities[] = new WebEntity( + $webEntityInfo['entityId'], + isset($webEntityInfo['description']) ? $webEntityInfo['description'] : null, + isset($webEntityInfo['score']) ? $webEntityInfo['score'] : null + ); } return $webEntities;