Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 10ce932

Browse filesBrowse 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
Copy full SHA for 10ce932

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/PhpUnit/Legacy/SymfonyTestsListenerTrait.php
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.