Fixing bad order of operations with null coalescing operator

This commit is contained in:
Ryan Weaver 2019-12-09 15:51:18 -05:00
parent 6e44447e5d
commit 629126435d

View File

@ -41,7 +41,7 @@ class ProblemNormalizer implements NormalizerInterface, CacheableSupportsMethodI
public function normalize($exception, $format = null, array $context = []) public function normalize($exception, $format = null, array $context = [])
{ {
$context += $this->defaultContext; $context += $this->defaultContext;
$debug = $this->debug && $context['debug'] ?? true; $debug = $this->debug && ($context['debug'] ?? true);
$data = [ $data = [
'type' => $context['type'], 'type' => $context['type'],