From 668709985e666c03606a6000386e1e5a7a9a74f4 Mon Sep 17 00:00:00 2001 From: Simon Schaufelberger Date: Mon, 25 Nov 2024 20:46:17 +0100 Subject: [PATCH] [TASK] Apply ExtbaseActionsWithRedirectMustReturnResponseInterfaceRector --- Classes/Controller/NewsBaseController.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Classes/Controller/NewsBaseController.php b/Classes/Controller/NewsBaseController.php index 221c9f9c4b..9f638520c3 100644 --- a/Classes/Controller/NewsBaseController.php +++ b/Classes/Controller/NewsBaseController.php @@ -45,8 +45,7 @@ protected function handleNoNewsFoundError(string $configuration): ?ResponseInter switch ($options[0]) { case 'redirectToListView': - $this->redirect('list'); - break; + return $this->redirect('list'); case 'redirectToPage': if (count($options) === 1 || count($options) > 3) { $msg = sprintf(