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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy