Skip to content

Commit 5802caa

Browse files
spazedg
authored andcommitted
Add @return never to redirect methods #304
1 parent 8ebaf08 commit 5802caa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Application/UI/Component.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ public function isLinkCurrent(?string $destination = null, $args = []): bool
309309
* Redirect to another presenter, action or signal.
310310
* @param string $destination in format "[//] [[[module:]presenter:]action | signal! | this] [#fragment]"
311311
* @param array|mixed $args
312+
* @return never
312313
* @throws Nette\Application\AbortException
313314
*/
314315
public function redirect(string $destination, $args = []): void
@@ -325,6 +326,7 @@ public function redirect(string $destination, $args = []): void
325326
* Permanently redirects to presenter, action or signal.
326327
* @param string $destination in format "[//] [[[module:]presenter:]action | signal! | this] [#fragment]"
327328
* @param array|mixed $args
329+
* @return never
328330
* @throws Nette\Application\AbortException
329331
*/
330332
public function redirectPermanent(string $destination, $args = []): void

0 commit comments

Comments
 (0)