8000 [Debug] Workaround "null" $context · symfony/symfony@2555f31 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2555f31

Browse files
[Debug] Workaround "null" $context
1 parent dd4e78c commit 2555f31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Debug/ErrorHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ public function handleError($type, $message, $file, $line)
373373
$scope = $this->scopedErrors & $type;
374374

375375
if (4 < $numArgs = func_num_args()) {
376-
$context = $scope ? func_get_arg(4) : array();
376+
$context = $scope ? (func_get_arg(4) ?: array()) : array();
377377
$backtrace = 5 < $numArgs ? func_get_arg(5) : null; // defined on HHVM
378378
} else {
379379
$context = array();

0 commit comments

Comments
 (0)
0