Apply new rector rules regarding to PHP version to 8.4

This commit is contained in:
2025-11-03 13:36:51 +01:00
parent d6f5ef4bb1
commit cdc489f01e
1086 changed files with 2219 additions and 1378 deletions

View File

@@ -108,6 +108,7 @@ class AccompanyingPeriodType extends AbstractType
->setAllowedTypes('center', Center::class);
}
#[\Override]
public function getBlockPrefix(): string
{
return 'chill_personbundle_accompanyingperiod';

View File

@@ -38,7 +38,7 @@ final class CreationPersonType extends AbstractType
{
// TODO: This is only used in test.
// TODO: See if this is still valid and update accordingly.
public const NAME = 'chill_personbundle_person_creation';
public const string NAME = 'chill_personbundle_person_creation';
private readonly bool $askCenters;
@@ -119,6 +119,7 @@ final class CreationPersonType extends AbstractType
]);
}
#[\Override]
public function getBlockPrefix(): string
{
return self::NAME;

View File

@@ -70,7 +70,7 @@ class PersonAltNameDataMapper implements DataMapperInterface
}
} else {
if (!$isEmpty) {
$altName = (new PersonAltName())
$altName = new PersonAltName()
->setKey($key)
->setLabel($form->getData());

View File

@@ -26,6 +26,7 @@ class PersonConfimDuplicateType extends AbstractType
]);
}
#[\Override]
public function getBlockPrefix(): string
{
return 'chill_personbundle_person_confirm_duplicate';

View File

@@ -30,6 +30,7 @@ class PersonFindManuallyDuplicateType extends AbstractType
]);
}
#[\Override]
public function getBlockPrefix(): string
{
return 'chill_personbundle_person_find_manually_duplicate';

View File

@@ -72,6 +72,7 @@ final class PersonResourceType extends AbstractType
]);
}
#[\Override]
public function getBlockPrefix(): string
{
return 'chill_personbundle_person_resource';

View File

@@ -255,6 +255,7 @@ class PersonType extends AbstractType
);
}
#[\Override]
public function getBlockPrefix(): string
{
return 'chill_personbundle_person';

View File

@@ -70,11 +70,13 @@ class ClosingMotivePickerType extends AbstractType
->getActiveClosingMotive($options['only_leaf']));
}
#[\Override]
public function getBlockPrefix(): string
{
return 'closing_motive';
}
#[\Override]
public function getParent(): ?string
{
return EntityType::class;

View File

@@ -43,6 +43,7 @@ class PickAdministrativeStatusType extends AbstractType
->setDefault('class', AdministrativeStatus::class);
}
#[\Override]
public function getParent(): ?string
{
return EntityType::class;

View File

@@ -43,6 +43,7 @@ class PickEmploymentStatusType extends AbstractType
->setDefault('class', EmploymentStatus::class);
}
#[\Override]
public function getParent(): ?string
{
return EntityType::class;

View File

@@ -44,6 +44,7 @@ class PickGenderType extends AbstractType
->setDefault('class', Gender::class);
}
#[\Override]
public function getParent(): ?string
{
return EntityType::class;

View File

@@ -53,6 +53,7 @@ class PickLinkedAccompanyingPeriodWorkType extends AbstractType
->setAllowedTypes('submit_on_adding_new_entity', ['bool']);
}
#[\Override]
public function getBlockPrefix(): string
{
return 'pick_linked_entities';

View File

@@ -60,6 +60,7 @@ class PickPersonDynamicType extends AbstractType
->setAllowedTypes('submit_on_adding_new_entity', ['bool']);
}
#[\Override]
public function getBlockPrefix(): string
{
return 'pick_entity_dynamic';

View File

@@ -92,6 +92,7 @@ final class PickPersonType extends AbstractType
]);
}
#[\Override]
public function getParent(): ?string
{
return EntityType::class;

View File

@@ -48,6 +48,7 @@ class PickSocialActionType extends AbstractType
->setAllowedTypes('show_social_issue_parenthesis', ['bool']);
}
#[\Override]
public function getParent(): string
{
return EntityType::class;

View File

@@ -38,6 +38,7 @@ class PickSocialIssueType extends AbstractType
->setAllowedTypes('multiple', ['bool']);
}
#[\Override]
public function getParent(): string
{
return EntityType::class;

View File

@@ -50,11 +50,13 @@ class Select2MaritalStatusType extends AbstractType
]);
}
#[\Override]
public function getBlockPrefix(): string
{
return 'select2_chill_marital_status';
}
#[\Override]
public function getParent(): ?string
{
return Select2ChoiceType::class;