mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-31 12:03:48 +00:00
apply rector rules: php up to php82
This commit is contained in:
@@ -18,7 +18,7 @@ use const SORT_NUMERIC;
|
||||
|
||||
class LabelPersonHelper
|
||||
{
|
||||
public function __construct(private PersonRepository $personRepository, private PersonRenderInterface $personRender)
|
||||
public function __construct(private readonly PersonRepository $personRepository, private readonly PersonRenderInterface $personRender)
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -88,7 +88,7 @@ final readonly class ListAccompanyingPeriodHelper
|
||||
|
||||
public function getLabels($key, array $values, $data)
|
||||
{
|
||||
if (str_starts_with($key, 'acp_address_fields')) {
|
||||
if (str_starts_with((string) $key, 'acp_address_fields')) {
|
||||
return $this->addressHelper->getLabel($key, $values, $data, 'acp_address_fields');
|
||||
}
|
||||
|
||||
|
@@ -42,7 +42,7 @@ use function strlen;
|
||||
*/
|
||||
class ListPersonHelper
|
||||
{
|
||||
public const FIELDS = [
|
||||
final public const FIELDS = [
|
||||
'personId',
|
||||
'civility',
|
||||
'firstName',
|
||||
@@ -74,7 +74,7 @@ class ListPersonHelper
|
||||
'lifecycleUpdate',
|
||||
];
|
||||
|
||||
public function __construct(private ExportAddressHelper $addressHelper, private CenterRepositoryInterface $centerRepository, private CivilityRepositoryInterface $civilityRepository, private CountryRepository $countryRepository, private LanguageRepositoryInterface $languageRepository, private MaritalStatusRepositoryInterface $maritalStatusRepository, private TranslatableStringHelper $translatableStringHelper, private TranslatorInterface $translator, private UserRepositoryInterface $userRepository)
|
||||
public function __construct(private readonly ExportAddressHelper $addressHelper, private readonly CenterRepositoryInterface $centerRepository, private readonly CivilityRepositoryInterface $civilityRepository, private readonly CountryRepository $countryRepository, private readonly LanguageRepositoryInterface $languageRepository, private readonly MaritalStatusRepositoryInterface $maritalStatusRepository, private readonly TranslatableStringHelper $translatableStringHelper, private readonly TranslatorInterface $translator, private readonly UserRepositoryInterface $userRepository)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -208,7 +208,7 @@ class ListPersonHelper
|
||||
|
||||
public function getLabels($key, array $values, $data): callable
|
||||
{
|
||||
if (str_starts_with($key, 'address_fields')) {
|
||||
if (str_starts_with((string) $key, 'address_fields')) {
|
||||
return $this->addressHelper->getLabel($key, $values, $data, 'address_fields');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user