diff --git a/Classes/Core/BaseTestCase.php b/Classes/Core/BaseTestCase.php index 8f020559..16018fcf 100644 --- a/Classes/Core/BaseTestCase.php +++ b/Classes/Core/BaseTestCase.php @@ -53,7 +53,9 @@ protected function tearDown(): void // Register a dummy error handler to retrieve *previous* one and unregister dummy again, // then verify previous is the phpunit error handler. This will mark the one test that // fails to unset/restore it's custom error handler as "risky". - $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 { + return false; + }); restore_error_handler(); $phpUnitUseErrorHandler = $this->shouldErrorHandlerBeUsed(); if (($phpUnitUseErrorHandler && !$previousErrorHandler instanceof ErrorHandler)