Skip to content
Snippets Groups Projects
Commit 863fe203 authored by Anja Leichsenring's avatar Anja Leichsenring Committed by Benni Mack
Browse files

[TASK] Declare all controllers of ext:beuser as strict typed

Set all missing files to declare(strict_types=1);

Resolves: #96792
Releases: main
Change-Id: I65946055f720830d2a431732d78846e0eac77a85
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/73360


Reviewed-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: default avatarSusanne Moog <look@susi.dev>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarSusanne Moog <look@susi.dev>
Tested-by: default avatarBenni Mack <benni@typo3.org>
parent 7e36ca5b
Branches
Tags
No related merge requests found
<?php
declare(strict_types=1);
/*
* This file is part of the TYPO3 CMS project.
*
......@@ -162,7 +164,7 @@ class BackendUserController extends ActionController
$addUserButton = $buttonBar->makeLinkButton()
->setIcon($this->iconFactory->getIcon('actions-add', Icon::SIZE_SMALL))
->setTitle(LocalizationUtility::translate('LLL:EXT:backend/Resources/Private/Language/locallang_layout.xlf:newRecordGeneral'))
->setHref($this->backendUriBuilder->buildUriFromRoute('record_edit', [
->setHref((string)$this->backendUriBuilder->buildUriFromRoute('record_edit', [
'edit' => ['be_users' => [0 => 'new']],
'returnUrl' => $this->request->getAttribute('normalizedParams')->getRequestUri(),
]));
......@@ -220,12 +222,12 @@ class BackendUserController extends ActionController
$backButton = $buttonBar->makeLinkButton()
->setIcon($this->iconFactory->getIcon('actions-view-go-back', Icon::SIZE_SMALL))
->setTitle(LocalizationUtility::translate('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.goBack'))
->setHref($this->backendUriBuilder->buildUriFromRoute('system_BeuserTxBeuser'));
->setHref((string)$this->backendUriBuilder->buildUriFromRoute('system_BeuserTxBeuser'));
$buttonBar->addButton($backButton);
$editButton = $buttonBar->makeLinkButton()
->setIcon($this->iconFactory->getIcon('actions-open', Icon::SIZE_SMALL))
->setTitle(LocalizationUtility::translate('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.goBack'))
->setHref($this->backendUriBuilder->buildUriFromRoute('record_edit', [
->setHref((string)$this->backendUriBuilder->buildUriFromRoute('record_edit', [
'edit' => ['be_users' => [$uid => 'edit']],
'returnUrl' => $this->request->getAttribute('normalizedParams')->getRequestUri(),
]));
......@@ -233,7 +235,7 @@ class BackendUserController extends ActionController
$addUserButton = $buttonBar->makeLinkButton()
->setIcon($this->iconFactory->getIcon('actions-add', Icon::SIZE_SMALL))
->setTitle(LocalizationUtility::translate('LLL:EXT:backend/Resources/Private/Language/locallang_layout.xlf:newRecordGeneral'))
->setHref($this->backendUriBuilder->buildUriFromRoute('record_edit', [
->setHref((string)$this->backendUriBuilder->buildUriFromRoute('record_edit', [
'edit' => ['be_users' => [0 => 'new']],
'returnUrl' => $this->request->getAttribute('normalizedParams')->getRequestUri(),
]));
......@@ -274,7 +276,7 @@ class BackendUserController extends ActionController
$backButton = $buttonBar->makeLinkButton()
->setIcon($this->iconFactory->getIcon('actions-view-go-back', Icon::SIZE_SMALL))
->setTitle(LocalizationUtility::translate('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.goBack'))
->setHref($this->backendUriBuilder->buildUriFromRoute('system_BeuserTxBeuser'));
->setHref((string)$this->backendUriBuilder->buildUriFromRoute('system_BeuserTxBeuser'));
$buttonBar->addButton($backButton);
$shortcutButton = $buttonBar->makeShortcutButton()
->setRouteIdentifier('system_BeuserTxBeuser')
......@@ -401,7 +403,7 @@ class BackendUserController extends ActionController
$addGroupButton = $buttonBar->makeLinkButton()
->setIcon($this->iconFactory->getIcon('actions-add', Icon::SIZE_SMALL))
->setTitle(LocalizationUtility::translate('LLL:EXT:backend/Resources/Private/Language/locallang_layout.xlf:newRecordGeneral'))
->setHref($this->backendUriBuilder->buildUriFromRoute('record_edit', [
->setHref((string)$this->backendUriBuilder->buildUriFromRoute('record_edit', [
'edit' => ['be_groups' => [0 => 'new']],
'returnUrl' => $this->request->getAttribute('normalizedParams')->getRequestUri(),
]));
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment