Skip to content

Commit

Permalink
Functions accept Slub\DigasFeManagement\Domain\Model\User or `In2co…
Browse files Browse the repository at this point in the history
…de\Femanager\Domain\Model\User`

Current PHP version doesn't accept multiple allowed types
  • Loading branch information
beatrycze-volk committed Oct 7, 2024
1 parent 614efdf commit 8f8323a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Classes/Controller/NewController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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
Expand Down Expand Up @@ -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'));
Expand Down

0 comments on commit 8f8323a

Please sign in to comment.