diff --git a/Neos.Flow/Classes/Mvc/Controller/AbstractController.php b/Neos.Flow/Classes/Mvc/Controller/AbstractController.php index 69268ff928..c36e276391 100644 --- a/Neos.Flow/Classes/Mvc/Controller/AbstractController.php +++ b/Neos.Flow/Classes/Mvc/Controller/AbstractController.php @@ -236,12 +236,11 @@ protected function forward(string $actionName, string $controllerName = null, st * Request is directly transfered to the other action / controller * * @param ActionRequest $request The request to redirect to - * @return void * @throws ForwardException * @see redirectToRequest() * @api */ - protected function forwardToRequest(ActionRequest $request) + protected function forwardToRequest(ActionRequest $request): never { $nextRequest = clone $request; throw ForwardException::createForNextRequest($nextRequest, '');