Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit10ce932

Browse files
committed
[PhpUnitBridge] do not require an error context
The error context argument of an error handler is deprecated as of PHP7.2. Requiring it in the error handler of the SymfonyTestsListenerTraitwill make error handlers fail that are executed when running PHPUnittests and forward the error handling to the previously registered errorhandler.
1 parent3f4c47c commit10ce932

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-
publicfunctionhandleError($type,$msg,$file,$line,$context)
306+
publicfunctionhandleError($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)

[8]ページ先頭

©2009-2025 Movatter.jp