[ErrorHandler] fix throwing from __toString()

This commit is contained in:
Nicolas Grekas 2020-06-30 19:26:29 +02:00
parent 801f4cd7ac
commit aeb4637341
1 changed files with 1 additions and 1 deletions

View File

@ -401,7 +401,7 @@ class ErrorHandler
$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 = [];