8000 [HttpKernel][Debug] Remove noise from stack frames of deprecations · symfony/symfony@f154be3 · GitHub
[go: up one dir, main page]

Skip to content

Commit f154be3

Browse files
[HttpKernel][Debug] Remove noise from stack frames of deprecations
1 parent ead2a1a commit f154be3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Symfony/Component/Debug/ErrorHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ private function cleanTrace($backtrace, $type, $file, $line, $throw)
707707
}
708708
if (!($throw || $this->scopedErrors & $type)) {
709709
for ($i = 0; isset($lightTrace[$i]); ++$i) {
710-
unset($lightTrace[$i]['args']);
710+
unset($lightTrace[$i]['args'], $lightTrace[$i]['object']);
711711
}
712712
}
713713

src/Symfony/Component/HttpKernel/EventListener/DebugHandlersListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function configure(Event $event = null)
8686
$handler->screamAt($levels);
8787
}
8888
if ($this->scope) {
89-
$handler->scopeAt($this->levels);
89+
$handler->scopeAt($levels & ~E_USER_DEPRECATED & ~E_DEPRECATED);
9090
} else {
9191
$handler->scopeAt(0, true);
9292
}

0 commit comments

Comments
 (0)
0