Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6291264

Browse files
committed
Fixing bad order of operations with null coalescing operator
1 parent 6e44447 commit 6291264

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Serializer/Normalizer/ProblemNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function __construct(bool $debug = false, array $defaultContext = [])
4141
public function normalize($exception, $format = null, array $context = [])
4242
{
4343
$context += $this->defaultContext;
44-
$debug = $this->debug && $context['debug'] ?? true;
44+
$debug = $this->debug && ($context['debug'] ?? true);
4545

4646
$data = [
4747
'type' => $context['type'],

0 commit comments

Comments
 (0)