Skip to content

Commit 10ce932

Browse files
committed
[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.
1 parent 3f4c47c commit 10ce932

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bridge/PhpUnit/Legacy/SymfonyTestsListenerTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ public function endTest($test, $time)
303303
}
304304
}
305305

306-
public function handleError($type, $msg, $file, $line, $context)
306+
public function handleError($type, $msg, $file, $line, $context = array())
307307
{
308308
if (E_USER_DEPRECATED !== $type && E_DEPRECATED !== $type) {
309309
$h = $this->previousErrorHandler;

0 commit comments

Comments
 (0)