diff --git a/src/Symfony/Component/Debug/ErrorHandler.php b/src/Symfony/Component/Debug/ErrorHandler.php index 1e415604c9..78dfba19b1 100644 --- a/src/Symfony/Component/Debug/ErrorHandler.php +++ b/src/Symfony/Component/Debug/ErrorHandler.php @@ -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();