Skip to content

Commit

Permalink
Merge pull request #29 from jordikroon/fix/28
Browse files Browse the repository at this point in the history
Allow WebEntity description to be null
  • Loading branch information
jordikroon authored Jun 8, 2018
2 parents 112e8ec + f3a5868 commit 018d282
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Hydrator/Strategy/WebEntitiesStrategy.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 018d282

Please sign in to comment.