8000 bug #24192 [PhpUnitBridge] do not require an error context (xabbuh) · symfony/symfony@949b17a · GitHub
[go: up one dir, main page]

Skip to content

Commit 949b17a

Browse 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

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)
0