Skip to content

Commit

Permalink
Update code if constant does not exists
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-schranz authored Nov 1, 2021
1 parent bb53789 commit 5006901
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Serializer/Normalizer/FlattenExceptionNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function supportsNormalization($data, $format = null, array $context = []
}

// we are in messenger context
if (!empty($context[Serializer::MESSENGER_SERIALIZATION_CONTEXT])) {
if (!empty($context['messenger_serialization'])) { // Serializer::MESSENGER_SERIALIZATION_CONTEXT
return false;
}

Expand Down

0 comments on commit 5006901

Please sign in to comment.