Skip to content

Commit 5006901

Browse files
Update code if constant does not exists
1 parent bb53789 commit 5006901

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Serializer/Normalizer/FlattenExceptionNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function supportsNormalization($data, $format = null, array $context = []
8686
}
8787

8888
// we are in messenger context
89-
if (!empty($context[Serializer::MESSENGER_SERIALIZATION_CONTEXT])) {
89+
if (!empty($context['messenger_serialization'])) { // Serializer::MESSENGER_SERIALIZATION_CONTEXT
9090
return false;
9191
}
9292

0 commit comments

Comments
 (0)