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)
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