@@ -68,13 +68,9 @@ public function mapFieldDefinitionForm(FormInterface $fieldDefinitionForm, Field
6868 'property_path ' => 'validatorConfiguration[TagsValueValidator][maxTags] ' ,
6969 'label ' => 'field_definition.tags.validator.max_tags ' ,
7070 'constraints ' => [
71- new Constraints \Type ([ ' type ' => 'int ' ] ),
71+ new Constraints \Type (type: 'int ' ),
7272 new Constraints \NotBlank (),
73- new Constraints \GreaterThanOrEqual (
74- [
75- 'value ' => 0 ,
76- ],
77- ),
73+ new Constraints \PositiveOrZero (),
7874 ],
7975 'empty_data ' => 0 ,
8076 'attr ' => [
@@ -90,7 +86,7 @@ public function mapFieldDefinitionForm(FormInterface $fieldDefinitionForm, Field
9086 'property_path ' => 'fieldSettings[hideRootTag] ' ,
9187 'label ' => 'field_definition.tags.settings.hide_root_tag ' ,
9288 'constraints ' => [
93- new Constraints \Type ([ ' type ' => 'bool ' ] ),
89+ new Constraints \Type (type: 'bool ' ),
9490 new Constraints \NotNull (),
9591 ],
9692 ],
@@ -104,13 +100,10 @@ public function mapFieldDefinitionForm(FormInterface $fieldDefinitionForm, Field
104100 'property_path ' => 'fieldSettings[editView] ' ,
105101 'label ' => 'field_definition.tags.settings.edit_view ' ,
106102 'constraints ' => [
107- new Constraints \Type ([ ' type ' => 'string ' ] ),
103+ new Constraints \Type (type: 'string ' ),
108104 new Constraints \NotBlank (),
109105 new Constraints \Choice (
110- [
111- 'choices ' => array_values ($ editViewChoices ),
112- 'strict ' => true ,
113- ],
106+ choices: array_values ($ editViewChoices ),
114107 ),
115108 ],
116109 ],
0 commit comments