diff --git a/src/Runner/ErrorHandler.php b/src/Runner/ErrorHandler.php index b1d0468bde..010a178b11 100644 --- a/src/Runner/ErrorHandler.php +++ b/src/Runner/ErrorHandler.php @@ -88,7 +88,7 @@ private function __construct(Source $source) /** * @throws NoTestCaseObjectOnCallStackException */ - public function __invoke(int $errorNumber, string $errorString, string $errorFile, int $errorLine): bool + public function __invoke(int $errorNumber, string $errorString, string $errorFile, int $errorLine): false { $suppressed = (error_reporting() & ~self::INSUPPRESSIBLE_LEVELS) === 0;