8000 bug #24910 [HttpKernel][Debug] Remove noise from stack frames of depr… · symfony/symfony@d4d8d3a · GitHub
[go: up one dir, main page]

Skip to content

Commit d4d8d3a

Browse files
bug #24910 [HttpKernel][Debug] Remove noise from stack frames of deprecations (nicolas-grekas)
This PR was merged into the 3.3 branch. Discussion ---------- [HttpKernel][Debug] Remove noise from stack frames of deprecations | Q | A | ------------- | --- | Branch? | 3.3 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #24625 | License | MIT | Doc PR | - Collecting arguments of deprecations is too heavy, and was unintended in fact. Commits ------- f154be3 [HttpKernel][Debug] Remove noise from stack frames of deprecations
2 parents ead2a1a + f154be3 commit d4d8d3a

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