Skip to content

Commit 71fa539

Browse files
authored
Update src/Serializer/AbstractItemNormalizer.php
1 parent 789607e commit 71fa539

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Serializer/AbstractItemNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ protected function denormalizeRelation(string $attributeName, ApiProperty $prope
585585
throw new UnexpectedValueException($e->getMessage(), $e->getCode(), $e);
586586
}
587587

588-
if (isset($context['denormalize_throw_on_not_found'])) {
588+
if (false === ($context['denormalize_throw_on_not_found'] ?? true)) {
589589
return null;
590590
}
591591

0 commit comments

Comments
 (0)