8000 Fix · symfony/symfony@69f8127 · GitHub
[go: up one dir, main page]

Skip to content

Commit 69f8127

Browse files
committed
Fix
1 parent 47287e3 commit 69f8127

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Serializer/Normalizer/ConstraintViolationListNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function __construct($defaultContext = [], NameConverterInterface $nameCo
4444
*/
4545
public function normalize($object, string $format = null, array $context = [])
4646
{
47-
$payloadFieldsToSerialize = $context[self::PAYLOAD_FIELDS] ?? $context[self::PAYLOAD_FIELDS] ?? null;
47+
$payloadFieldsToSerialize = $context[self::PAYLOAD_FIELDS] ?? $this->defaultContext[self::PAYLOAD_FIELDS] ?? null;
4848
if (\is_array($payloadFieldsToSerialize)) {
4949
$payloadFieldsToSerialize = array_flip($payloadFieldsToSerialize);
5050
}

0 commit comments

Comments
 (0)
0