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 949b17a

Browse filesBrowse files
bug #24192 [PhpUnitBridge] do not require an error context (xabbuh)
This PR was merged into the 3.3 branch. Discussion ---------- [PhpUnitBridge] do not require an error context | Q | A | ------------- | --- | Branch? | 3.3 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | 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. Commits ------- 10ce932 [PhpUnitBridge] do not require an error context
2 parents 857ae7a + 10ce932 commit 949b17a
Copy full SHA for 949b17a

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.