Closed MartkCz closed 1 year ago
Hi, when this method was last on Presenter? thanks.
idk, but v2.4.0 (5 years ago) had these methods in UI\Component https://github.com/nette/application/blob/v2.4.0/src/Application/UI/Component.php#L347-L375
v2.3.0 hasn't Component, but PresenterComponent only with redirect method https://github.com/nette/application/blob/v2.3.0/src/Application/UI/PresenterComponent.php#L322-L345
The best way forward would be to have /** @return never */
directly in Nette above those methods. Please try to send a PR there first.
I hit the issue earlier today (missing redirectPermanent
either on Component
or Presenter
), so I've created a PR in nette/application https://github.com/nette/application/pull/304
The nette/application PR has been merged, pending release.
Since https://github.com/nette/application/pull/304 is merged I think there's no more need for this :)
And the return never
tag has now been released in nette/application 3.1.10.
https://github.com/nette/application/blob/master/src/Application/UI/Component.php#L292
https://github.com/nette/application/blob/master/src/Application/UI/Component.php#L308