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
This commit is contained in:
Nicolas Grekas 2017-11-21 10:08:30 +01:00
commit 79a64d3bd5

View File

@ -417,6 +417,7 @@ class ErrorHandler
$errorAsException = self::$silencedErrorCache[$id][$message];
++$errorAsException->count;
} else {
$lightTrace = array();
$errorAsException = null;
}