mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2026-03-12 17:07:45 +00:00
Apply new rector rules regarding to PHP version to 8.4
This commit is contained in:
@@ -108,6 +108,7 @@ class AccompanyingPeriodType extends AbstractType
|
||||
->setAllowedTypes('center', Center::class);
|
||||
}
|
||||
|
||||
#[\Override]
|
||||
public function getBlockPrefix(): string
|
||||
{
|
||||
return 'chill_personbundle_accompanyingperiod';
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -70,7 +70,7 @@ class PersonAltNameDataMapper implements DataMapperInterface
|
||||
}
|
||||
} else {
|
||||
if (!$isEmpty) {
|
||||
$altName = (new PersonAltName())
|
||||
$altName = new PersonAltName()
|
||||
->setKey($key)
|
||||
->setLabel($form->getData());
|
||||
|
||||
|
||||
@@ -26,6 +26,7 @@ class PersonConfimDuplicateType extends AbstractType
|
||||
]);
|
||||
}
|
||||
|
||||
#[\Override]
|
||||
public function getBlockPrefix(): string
|
||||
{
|
||||
return 'chill_personbundle_person_confirm_duplicate';
|
||||
|
||||
@@ -30,6 +30,7 @@ class PersonFindManuallyDuplicateType extends AbstractType
|
||||
]);
|
||||
}
|
||||
|
||||
#[\Override]
|
||||
public function getBlockPrefix(): string
|
||||
{
|
||||
return 'chill_personbundle_person_find_manually_duplicate';
|
||||
|
||||
@@ -72,6 +72,7 @@ final class PersonResourceType extends AbstractType
|
||||
]);
|
||||
}
|
||||
|
||||
#[\Override]
|
||||
public function getBlockPrefix(): string
|
||||
{
|
||||
return 'chill_personbundle_person_resource';
|
||||
|
||||
@@ -255,6 +255,7 @@ class PersonType extends AbstractType
|
||||
);
|
||||
}
|
||||
|
||||
#[\Override]
|
||||
public function getBlockPrefix(): string
|
||||
{
|
||||
return 'chill_personbundle_person';
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -43,6 +43,7 @@ class PickAdministrativeStatusType extends AbstractType
|
||||
->setDefault('class', AdministrativeStatus::class);
|
||||
}
|
||||
|
||||
#[\Override]
|
||||
public function getParent(): ?string
|
||||
{
|
||||
return EntityType::class;
|
||||
|
||||
@@ -43,6 +43,7 @@ class PickEmploymentStatusType extends AbstractType
|
||||
->setDefault('class', EmploymentStatus::class);
|
||||
}
|
||||
|
||||
#[\Override]
|
||||
public function getParent(): ?string
|
||||
{
|
||||
return EntityType::class;
|
||||
|
||||
@@ -44,6 +44,7 @@ class PickGenderType extends AbstractType
|
||||
->setDefault('class', Gender::class);
|
||||
}
|
||||
|
||||
#[\Override]
|
||||
public function getParent(): ?string
|
||||
{
|
||||
return EntityType::class;
|
||||
|
||||
@@ -53,6 +53,7 @@ class PickLinkedAccompanyingPeriodWorkType extends AbstractType
|
||||
->setAllowedTypes('submit_on_adding_new_entity', ['bool']);
|
||||
}
|
||||
|
||||
#[\Override]
|
||||
public function getBlockPrefix(): string
|
||||
{
|
||||
return 'pick_linked_entities';
|
||||
|
||||
@@ -60,6 +60,7 @@ class PickPersonDynamicType extends AbstractType
|
||||
->setAllowedTypes('submit_on_adding_new_entity', ['bool']);
|
||||
}
|
||||
|
||||
#[\Override]
|
||||
public function getBlockPrefix(): string
|
||||
{
|
||||
return 'pick_entity_dynamic';
|
||||
|
||||
@@ -92,6 +92,7 @@ final class PickPersonType extends AbstractType
|
||||
]);
|
||||
}
|
||||
|
||||
#[\Override]
|
||||
public function getParent(): ?string
|
||||
{
|
||||
return EntityType::class;
|
||||
|
||||
@@ -48,6 +48,7 @@ class PickSocialActionType extends AbstractType
|
||||
->setAllowedTypes('show_social_issue_parenthesis', ['bool']);
|
||||
}
|
||||
|
||||
#[\Override]
|
||||
public function getParent(): string
|
||||
{
|
||||
return EntityType::class;
|
||||
|
||||
@@ -38,6 +38,7 @@ class PickSocialIssueType extends AbstractType
|
||||
->setAllowedTypes('multiple', ['bool']);
|
||||
}
|
||||
|
||||
#[\Override]
|
||||
public function getParent(): string
|
||||
{
|
||||
return EntityType::class;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user