From d594fb52dbbc78adee516064c315fef748d811a0 Mon Sep 17 00:00:00 2001 From: Beatrycze Volk Date: Mon, 7 Oct 2024 16:56:54 +0200 Subject: [PATCH] Change return type in `newAction` function --- Classes/Controller/NewController.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Classes/Controller/NewController.php b/Classes/Controller/NewController.php index a0f6076..0a50107 100644 --- a/Classes/Controller/NewController.php +++ b/Classes/Controller/NewController.php @@ -26,6 +26,7 @@ ***************************************************************/ use In2code\Femanager\Utility\LocalizationUtility; +use Psr\Http\Message\ResponseInterface; use Slub\DigasFeManagement\Domain\Model\User; use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\CMS\Extbase\Mvc\Exception\UnsupportedRequestTypeException; @@ -52,16 +53,16 @@ public function initializeCreateAction() * Render registration form * * @param User|\In2code\Femanager\Domain\Model\User $user - * @return void + * @return ResponseInterface */ - public function newAction(\In2code\Femanager\Domain\Model\User $user = null) + public function newAction(\In2code\Femanager\Domain\Model\User $user = null): ResponseInterface { //get kitodo ID if set $kitodoParams = GeneralUtility::_GET('tx_dlf'); $this->view->assign('kitodoParams', $kitodoParams); $this->view->assign('currentUser', $this->user); - parent::newAction($user); + return parent::newAction($user); } /**