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

Skip to content

Commit 79a64d3

Browse files
bug #25069 [Debug] Fix undefined variable $lightTrace (nicolas-grekas)
This PR was merged into the 3.4 branch. Discussion ---------- [Debug] Fix undefined variable $lightTrace | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - As reported in #25066 Commits ------- 21b2343 [Debug] Fix undefined variable $lightTrace
2 parents 30325e0 + 21b2343 commit 79a64d3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Symfony/Component/Debug/ErrorHandler.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,7 @@ public function handleError($type, $message, $file, $line)
417417
$errorAsException = self::$silencedErrorCache[$id][$message];
418418
++$errorAsException->count;
419419
} else {
420+
$lightTrace = array();
420421
$errorAsException = null;
421422
}
422423

0 commit comments

Comments
 (0)