[HttpKernel][Debug] Remove noise from stack frames of deprecations

This commit is contained in:
Nicolas Grekas 2017-11-10 17:38:39 +01:00
parent ead2a1a0eb
commit f154be3207
2 changed files with 2 additions and 2 deletions

View File

@ -707,7 +707,7 @@ class ErrorHandler
}
if (!($throw || $this->scopedErrors & $type)) {
for ($i = 0; isset($lightTrace[$i]); ++$i) {
unset($lightTrace[$i]['args']);
unset($lightTrace[$i]['args'], $lightTrace[$i]['object']);
}
}

View File

@ -86,7 +86,7 @@ class DebugHandlersListener implements EventSubscriberInterface
$handler->screamAt($levels);
}
if ($this->scope) {
$handler->scopeAt($this->levels);
$handler->scopeAt($levels & ~E_USER_DEPRECATED & ~E_DEPRECATED);
} else {
$handler->scopeAt(0, true);
}