From a1eae05bf6bcc827a69cdc92597054942583bc91 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Thu, 28 Aug 2025 11:55:22 +0200 Subject: [PATCH] Component::error() returns never --- src/Application/UI/Component.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Application/UI/Component.php b/src/Application/UI/Component.php index 82adb6199..3b0171549 100644 --- a/src/Application/UI/Component.php +++ b/src/Application/UI/Component.php @@ -382,7 +382,7 @@ public function redirectPermanent(string $destination, ...$args): never * Throws HTTP error. * @throws Nette\Application\BadRequestException */ - public function error(string $message = '', int $httpCode = Nette\Http\IResponse::S404_NotFound): void + public function error(string $message = '', int $httpCode = Nette\Http\IResponse::S404_NotFound): never { throw new Nette\Application\BadRequestException($message, $httpCode); }