Skip to content

Commit

Permalink
Add @return never to redirect methods #304
Browse files Browse the repository at this point in the history
  • Loading branch information
spaze authored and dg committed Jan 17, 2023
1 parent 8ebaf08 commit 5802caa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Application/UI/Component.php
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ public function isLinkCurrent(?string $destination = null, $args = []): bool
* Redirect to another presenter, action or signal.
* @param string $destination in format "[//] [[[module:]presenter:]action | signal! | this] [#fragment]"
* @param array|mixed $args
* @return never
* @throws Nette\Application\AbortException
*/
public function redirect(string $destination, $args = []): void
Expand All @@ -325,6 +326,7 @@ public function redirect(string $destination, $args = []): void
* Permanently redirects to presenter, action or signal.
* @param string $destination in format "[//] [[[module:]presenter:]action | signal! | this] [#fragment]"
* @param array|mixed $args
* @return never
* @throws Nette\Application\AbortException
*/
public function redirectPermanent(string $destination, $args = []): void
Expand Down

0 comments on commit 5802caa

Please sign in to comment.