Skip to content

Commit d6495b7

Browse files
fix deprecated
1 parent 827d6bc commit d6495b7

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/Form/Type/AppRoleType.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
4545
'required' => true,
4646
'constraints' => [
4747
new NotBlank(),
48-
new Regex([
49-
'pattern' => '/^[A-Z_]+$/',
50-
'htmlPattern' => '^[A-Z_]+$',
51-
]),
48+
new Regex(
49+
pattern: '/^[A-Z_]+$/',
50+
htmlPattern: '^[A-Z_]+$',
51+
),
5252
],
5353
'help' => 'help_form.app_role.name',
5454
'help_html' => true,

src/Form/Type/ElasticsearchUserType.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
7777
'required' => true,
7878
'constraints' => [
7979
new NotBlank(),
80-
new Length([
81-
'min' => 6,
82-
]),
80+
new Length(
81+
min: 6,
82+
),
8383
],
8484
'attr' => [
8585
'autocomplete' => 'new-password',
@@ -91,9 +91,9 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
9191
'label' => 'password',
9292
'required' => false,
9393
'constraints' => [
94-
new Length([
95-
'min' => 6,
96-
]),
94+
new Length(
95+
min: 6,
96+
),
9797
],
9898
'attr' => [
9999
'disabled' => 'disabled',

0 commit comments

Comments
 (0)