We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c0f81e commit dbd0357Copy full SHA for dbd0357
1 file changed
Classes/Core/BaseTestCase.php
@@ -53,7 +53,9 @@ protected function tearDown(): void
53
// Register a dummy error handler to retrieve *previous* one and unregister dummy again,
54
// then verify previous is the phpunit error handler. This will mark the one test that
55
// fails to unset/restore it's custom error handler as "risky".
56
- $previousErrorHandler = set_error_handler(function (int $errorNumber, string $errorString, string $errorFile, int $errorLine): bool {return false;});
+ $previousErrorHandler = set_error_handler(function (int $errorNumber, string $errorString, string $errorFile, int $errorLine): bool {
57
+ return false;
58
+ });
59
restore_error_handler();
60
$phpUnitUseErrorHandler = $this->shouldErrorHandlerBeUsed();
61
if (($phpUnitUseErrorHandler && !$previousErrorHandler instanceof ErrorHandler)
0 commit comments