[ErrorHandler] fix throwing from __toString()
This commit is contained in:
parent
801f4cd7ac
commit
aeb4637341
@ -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 = [];
|
||||
|
Reference in New Issue
Block a user