Skip to content

Commit

Permalink
[ErrorHandler] fix throwing from __toString()
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Jun 30, 2020
1 parent 801f4cd commit aeb4637
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/Debug/ErrorHandler.php
Expand Up @@ -401,7 +401,7 @@ public function handleError($type, $message, $file, $line)
$scope = $this->scopedErrors & $type;

if (4 < $numArgs = \func_num_args()) {
$context = $scope ? (func_get_arg(4) ?: []) : [];
$context = func_get_arg(4) ?: [];
$backtrace = 5 < $numArgs ? func_get_arg(5) : null; // defined on HHVM
} else {
$context = [];
Expand Down

0 comments on commit aeb4637

Please sign in to comment.