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 c3e66d9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Classes/Controller/NewController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -54,14 +55,14 @@ 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(\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);
}

/**
Expand Down

0 comments on commit c3e66d9

Please sign in to comment.