Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2555f31

Browse filesBrowse files
[Debug] Workaround "null" $context
1 parent dd4e78c commit 2555f31
Copy full SHA for 2555f31

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎src/Symfony/Component/Debug/ErrorHandler.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Debug/ErrorHandler.php
+1-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.