From 629126435dd19c9dbf30d000bfbd7f38c463ed9e Mon Sep 17 00:00:00 2001 From: Ryan Weaver Date: Mon, 9 Dec 2019 15:51:18 -0500 Subject: [PATCH] Fixing bad order of operations with null coalescing operator --- .../Component/Serializer/Normalizer/ProblemNormalizer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Serializer/Normalizer/ProblemNormalizer.php b/src/Symfony/Component/Serializer/Normalizer/ProblemNormalizer.php index 1b88957f76..17f4500f26 100644 --- a/src/Symfony/Component/Serializer/Normalizer/ProblemNormalizer.php +++ b/src/Symfony/Component/Serializer/Normalizer/ProblemNormalizer.php @@ -41,7 +41,7 @@ class ProblemNormalizer implements NormalizerInterface, CacheableSupportsMethodI public function normalize($exception, $format = null, array $context = []) { $context += $this->defaultContext; - $debug = $this->debug && $context['debug'] ?? true; + $debug = $this->debug && ($context['debug'] ?? true); $data = [ 'type' => $context['type'],