From 8f8323addef60618163b72867c4ae510050fcb90 Mon Sep 17 00:00:00 2001 From: Beatrycze Volk Date: Mon, 7 Oct 2024 16:56:54 +0200 Subject: [PATCH] Functions accept `Slub\DigasFeManagement\Domain\Model\User` or `In2code\Femanager\Domain\Model\User` Current PHP version doesn't accept multiple allowed types --- Classes/Controller/NewController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Classes/Controller/NewController.php b/Classes/Controller/NewController.php index a0f6076..853e935 100644 --- a/Classes/Controller/NewController.php +++ b/Classes/Controller/NewController.php @@ -54,7 +54,7 @@ public function initializeCreateAction() * @param User|\In2code\Femanager\Domain\Model\User $user * @return void */ - public function newAction(\In2code\Femanager\Domain\Model\User $user = null) + public function newAction($user = null) { //get kitodo ID if set $kitodoParams = GeneralUtility::_GET('tx_dlf'); @@ -73,7 +73,7 @@ public function newAction(\In2code\Femanager\Domain\Model\User $user = null) * @TYPO3\CMS\Extbase\Annotation\Validate("In2code\Femanager\Domain\Validator\CaptchaValidator", param="user") * @return void */ - public function createAction(\In2code\Femanager\Domain\Model\User $user) + public function createAction($user) { // change e-mail @@ -107,7 +107,7 @@ public function createAction(\In2code\Femanager\Domain\Model\User $user) * @return void * @throws UnsupportedRequestTypeException */ - protected function createUserConfirmationRequest(\In2code\Femanager\Domain\Model\User $user) + protected function createUserConfirmationRequest($user) { $this->sendCreateUserConfirmationMail($user); $this->addFlashMessage(LocalizationUtility::translate($this->settings['new']['changeEmail'] ? 'emailChangedRequestWaitingForUserConfirm' : 'createRequestWaitingForUserConfirm', 'DigasFeManagement'));