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

Skip to content

Commit fdb1639

Browse files
bug #22817 [PhpUnitBridge] optional error handler arguments (xabbuh)
This PR was merged into the 2.7 branch. Discussion ---------- [PhpUnitBridge] optional error handler arguments | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | https://travis-ci.org/symfony/symfony/jobs/234483755#L2460 | License | MIT | Doc PR | Commits ------- f7d1a06 respect optional error handler arguments
2 parents 628ec81 + f7d1a06 commit fdb1639

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)