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
1 changed files with 1 additions and 1 deletions

View File

@ -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'],