feat: upgrade to symfony 7.4

This commit is contained in:
fromme committed 2026-09-01 11:24:44 +02:00
1 parent 8ed20db90c
commit 2459af122f
41 files changed
+1527 -1219

No files matched your search

+5
View File
@@ -24,6 +24,11 @@ class AbbreviatedDateType extends AbstractType
{
$resolver->setDefaults([
'input' => 'datetime_immutable',
// Explicit 'choice' preserves the pre-Symfony-7.4 default (7.4 flipped it to
// 'single_text'). This type needs the multi-field widget: the 'years' option at
// the call sites and FirstDayOfMonthDateTransformer both assume array submissions,
// and 'single_text' + the custom 'format' below throws under html5.
'widget' => 'choice',
'format' => 'y-MMMM-d',
]);
}
+1 -3
View File
@@ -17,9 +17,7 @@ class DeleteAccountType extends AbstractType
'label' => 'Ja, ich möchte meinen Account endgültig löschen',
'mapped' => false,
'constraints' => [
new IsTrue([
'message' => 'Bitte bestätige die Löschung',
]),
new IsTrue(message: 'Bitte bestätige die Löschung'),
],
]);
}
+1 -3
View File
@@ -21,9 +21,7 @@ class DisableUserType extends AbstractType
'data-action' => 'textarea-autosize#resize',
],
'constraints' => [
new NotBlank([
'message' => 'Bitte gib die Begründung ein',
]),
new NotBlank(message: 'Bitte gib die Begründung ein'),
],
])
->add('disabledReasonInternal', TextareaType::class, [
+1 -3
View File
@@ -30,9 +30,7 @@ class DispositionCallOffType extends AbstractType
'data-action' => 'textarea-autosize#resize',
],
'constraints' => [
new NotBlank([
'message' => 'Bitte gib die Begründung ein',
]),
new NotBlank(message: 'Bitte gib die Begründung ein'),
],
])
->add('sendNotification', CheckboxType::class, [
+1 -3
View File
@@ -58,9 +58,7 @@ class TeamerApplicationType extends AbstractType
'label' => 'Ich bestätige den abweichenden Buszustieg',
'mapped' => false,
'constraints' => [
new IsTrue([
'message' => 'Deine Bestätigung ist erforderlich',
]),
new IsTrue(message: 'Deine Bestätigung ist erforderlich'),
],
]);
}
+1 -3
View File
@@ -42,9 +42,7 @@ class TeamerDispositionType extends AbstractType
'label' => 'Ich bestätige, dass meine persönlichen Daten, Bankverbindung und Kontoinhaber korrekt sind',
'mapped' => false,
'constraints' => [
new IsTrue([
'message' => 'Deine Bestätigung ist erforderlich',
]),
new IsTrue(message: 'Deine Bestätigung ist erforderlich'),
],
]);
}