[Debug] Workaround "null" $context

This commit is contained in:
Nicolas Grekas 2017-01-25 13:11:45 +01:00
parent dd4e78c96d
commit 2555f3151d
1 changed files with 1 additions and 1 deletions

View File

@ -373,7 +373,7 @@ class ErrorHandler
$scope = $this->scopedErrors & $type;
if (4 < $numArgs = func_num_args()) {
$context = $scope ? func_get_arg(4) : array();
$context = $scope ? (func_get_arg(4) ?: array()) : array();
$backtrace = 5 < $numArgs ? func_get_arg(5) : null; // defined on HHVM
} else {
$context = array();