8000 bug #37464 [ErrorHandler] fix throwing from __toString() (nicolas-gre… · symfony/symfony@034be44 · GitHub
[go: up one dir, main page]

Skip to content

Commit 034be44

Browse files
bug #37464 [ErrorHandler] fix throwing from __toString() (nicolas-grekas)
This PR was merged into the 3.4 branch. Discussion ---------- [ErrorHandler] fix throwing from __toString() | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #37142 | License | MIT | Doc PR | - Commits ------- aeb4637 [ErrorHandler] fix throwing from __toString()
2 parents 801f4cd + aeb4637 commit 034be44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Debug/ErrorHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ public function handleError($type, $message, $file, $line)
401401
$scope = $this->scopedErrors & $type;
402402

403403
if (4 < $numArgs = \func_num_args()) {
404-
$context = $scope ? (func_get_arg(4) ?: []) : [];
404+
$context = func_get_arg(4) ?: [];
405405
$backtrace = 5 < $numArgs ? func_get_arg(5) : null; // defined on HHVM
406406
} else {
407407
$context = [];

0 commit comments

Comments
 (0)
0