respect optional error handler arguments

This commit is contained in:
Christian Flothmann 2017-05-21 10:33:50 +02:00
parent 628ec8118e
commit f7d1a064c6
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ class DeprecationErrorHandler
'legacy' => array(), 'legacy' => array(),
'other' => array(), 'other' => array(),
); );
$deprecationHandler = function ($type, $msg, $file, $line, $context) use (&$deprecations, $getMode) { $deprecationHandler = function ($type, $msg, $file, $line, $context = array()) use (&$deprecations, $getMode) {
if (E_USER_DEPRECATED !== $type) { if (E_USER_DEPRECATED !== $type) {
return \PHPUnit_Util_ErrorHandler::handleError($type, $msg, $file, $line, $context); return \PHPUnit_Util_ErrorHandler::handleError($type, $msg, $file, $line, $context);
} }