Skip to content

Commit b00dc9a

Browse files
authored
Component::error() returns never (#356)
1 parent 90f4555 commit b00dc9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Application/UI/Component.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ public function redirectPermanent(string $destination, ...$args): never
382382
* Throws HTTP error.
383383
* @throws Nette\Application\BadRequestException
384384
*/
385-
public function error(string $message = '', int $httpCode = Nette\Http\IResponse::S404_NotFound): void
385+
public function error(string $message = '', int $httpCode = Nette\Http\IResponse::S404_NotFound): never
386386
{
387387
throw new Nette\Application\BadRequestException($message, $httpCode);
388388
}

0 commit comments

Comments
 (0)