Skip to content

Commit 5729145

Browse files
vranadg
authored andcommitted
Component::error() returns never (#356)
1 parent 56986e6 commit 5729145

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
@@ -374,7 +374,7 @@ public function redirectPermanent(string $destination, $args = []): void
374374
* Throws HTTP error.
375375
* @throws Nette\Application\BadRequestException
376376
*/
377-
public function error(string $message = '', int $httpCode = Nette\Http\IResponse::S404_NotFound): void
377+
public function error(string $message = '', int $httpCode = Nette\Http\IResponse::S404_NotFound): never
378378
{
379379
throw new Nette\Application\BadRequestException($message, $httpCode);
380380
}

0 commit comments

Comments
 (0)