Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit aeb4637

Browse files
[ErrorHandler] fix throwing from __toString()
1 parent 801f4cd commit aeb4637

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
@@ -401,7 +401,7 @@ public function handleError($type, $message, $file, $line)
401401
$scope = $this->scopedErrors & $type;
402402

403403
if (4 < $numArgs = \func_num_args()) {
404-
$context = $scope ? (func_get_arg(4) ?: []) : [];
404+
$context = func_get_arg(4) ?: [];
405405
$backtrace = 5 < $numArgs ? func_get_arg(5) : null; // defined on HHVM
406406
} else {
407407
$context = [];

0 commit comments

Comments
 (0)