diff --git a/module/Olcs/src/Controller/Licence/Surrender/StartController.php b/module/Olcs/src/Controller/Licence/Surrender/StartController.php index e9001d1dc..cbd2083e8 100644 --- a/module/Olcs/src/Controller/Licence/Surrender/StartController.php +++ b/module/Olcs/src/Controller/Licence/Surrender/StartController.php @@ -13,6 +13,7 @@ use Laminas\Http\Response; use Laminas\I18n\Translator\Translator; use Laminas\Mvc\MvcEvent; +use Laminas\View\Model\ViewModel; use Olcs\Controller\AbstractSelfserveController; use Olcs\Controller\Config\DataSource\DataSourceConfig; use Permits\Controller\Config\FeatureToggle\FeatureToggleConfig; @@ -68,7 +69,7 @@ public function onDispatch(MvcEvent $e) /** * IndexAction * - * @return array|\Laminas\View\Model\ViewModel + * @return array|ViewModel */ public function indexAction() { @@ -126,7 +127,7 @@ private function getGvData(): array * * @psalm-return array{pageTitle: 'licence.surrender.start.title.psv', cancelBus: list{mixed}} */ - private function getPsvData(Translator $translateService): array + private function getPsvData(TranslationHelperService $translateService): array { return [ 'pageTitle' => 'licence.surrender.start.title.psv', @@ -134,15 +135,7 @@ private function getPsvData(Translator $translateService): array ]; } - /** - * getView - * - * @param array $licence - * @param Translator $translateService - * - * @return \Laminas\View\Model\ViewModel - */ - private function getView($licence, $translateService): \Laminas\View\Model\ViewModel + private function getView(array $licence, TranslationHelperService $translateService): ViewModel { $view = $this->genericView();