diff --git a/Classes/Mvc/Controller/SpecialResponsesSupport.php b/Classes/Mvc/Controller/SpecialResponsesSupport.php index 17deeca3e..733500c78 100644 --- a/Classes/Mvc/Controller/SpecialResponsesSupport.php +++ b/Classes/Mvc/Controller/SpecialResponsesSupport.php @@ -21,7 +21,7 @@ trait SpecialResponsesSupport * @return never * @throws StopActionException */ - protected function responseThrowsStatus(int $statusCode, string $content = '', ?ActionResponse $response = null): never + final protected function responseThrowsStatus(int $statusCode, string $content = '', ?ActionResponse $response = null): never { $response = $response ?? new ActionResponse; @@ -43,7 +43,7 @@ protected function responseThrowsStatus(int $statusCode, string $content = '', ? * @return ActionResponse * @throws StopActionException */ - protected function responseRedirectsToUri(UriInterface $uri, int $delay = 0, int $statusCode = 303, ?ActionResponse $response = null): ActionResponse + final protected function responseRedirectsToUri(UriInterface $uri, int $delay = 0, int $statusCode = 303, ?ActionResponse $response = null): ActionResponse { $nextResponse = $response !== null ? clone $response : new ActionResponse(); @@ -53,7 +53,7 @@ protected function responseRedirectsToUri(UriInterface $uri, int $delay = 0, int } $nextResponse->setStatusCode($statusCode); - $content = sprintf('', $delay, $uri); + $content = sprintf('Redirect to %s', $delay, $uri, $uri); $nextResponse->setContent($content); return $nextResponse; } @@ -64,7 +64,7 @@ protected function responseRedirectsToUri(UriInterface $uri, int $delay = 0, int * @return never * @throws StopActionException */ - protected function throwStopActionWithResponse(ActionResponse $response, string $details = ''): never + final protected function throwStopActionWithResponse(ActionResponse $response, string $details = ''): never { throw StopActionException::createForResponse($response, $details); } @@ -80,7 +80,7 @@ protected function throwStopActionWithResponse(ActionResponse $response, string * @return never * @throws ForwardException */ - protected function forwardToRequest(ActionRequest $request): never + final protected function forwardToRequest(ActionRequest $request): never { $nextRequest = clone $request; throw ForwardException::createForNextRequest($nextRequest, '');