8000 respect optional error handler arguments · symfony/symfony@f7d1a06 · GitHub
[go: up one dir, main page]

Skip to content

Commit f7d1a06

Browse files
committed
respect optional error handler arguments
1 parent 628ec81 commit f7d1a06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public static function register($mode = false)
4949
'legacy' => array(),
5050
'other' => array(),
5151
);
52-
$deprecationHandler = function ($type, $msg, $file, $line, $context) use (&$deprecations, $getMode) {
52+
$deprecationHandler = function ($type, $msg, $file, $line, $context = array()) use (&$deprecations, $getMode) {
5353
if (E_USER_DEPRECATED !== $type) {
5454
return \PHPUnit_Util_ErrorHandler::handleError($type, $msg, $file, $line, $context);
5555
}

0 commit comments

Comments
 (0)
0