From 10ce932504829ec89a2565cc0b0f6e4d17c6f76e Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Wed, 13 Sep 2017 20:51:11 +0200 Subject: [PATCH] [PhpUnitBridge] do not require an error context The error context argument of an error handler is deprecated as of PHP 7.2. Requiring it in the error handler of the SymfonyTestsListenerTrait will make error handlers fail that are executed when running PHPUnit tests and forward the error handling to the previously registered error handler. --- src/Symfony/Bridge/PhpUnit/Legacy/SymfonyTestsListenerTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Bridge/PhpUnit/Legacy/SymfonyTestsListenerTrait.php b/src/Symfony/Bridge/PhpUnit/Legacy/SymfonyTestsListenerTrait.php index 173a0fa82fd9..b561c8f2f53a 100644 --- a/src/Symfony/Bridge/PhpUnit/Legacy/SymfonyTestsListenerTrait.php +++ b/src/Symfony/Bridge/PhpUnit/Legacy/SymfonyTestsListenerTrait.php @@ -303,7 +303,7 @@ public function endTest($test, $time) } } - public function handleError($type, $msg, $file, $line, $context) + public function handleError($type, $msg, $file, $line, $context = array()) { if (E_USER_DEPRECATED !== $type && E_DEPRECATED !== $type) { $h = $this->previousErrorHandler;