diff --git a/src/lib/Content/View/Filter/ContentCreateViewFilter.php b/src/lib/Content/View/Filter/ContentCreateViewFilter.php index 2fa6d35..89adb0e 100644 --- a/src/lib/Content/View/Filter/ContentCreateViewFilter.php +++ b/src/lib/Content/View/Filter/ContentCreateViewFilter.php @@ -54,7 +54,7 @@ public function __construct( $this->languagePreferenceProvider = $languagePreferenceProvider; } - public static function getSubscribedEvents() + public static function getSubscribedEvents(): array { return [ViewEvents::FILTER_BUILDER_PARAMETERS => 'handleContentCreateForm']; } diff --git a/src/lib/Content/View/Filter/ContentEditViewFilter.php b/src/lib/Content/View/Filter/ContentEditViewFilter.php index e8a202d..631dcb6 100644 --- a/src/lib/Content/View/Filter/ContentEditViewFilter.php +++ b/src/lib/Content/View/Filter/ContentEditViewFilter.php @@ -61,7 +61,7 @@ public function __construct( $this->locationService = $locationService; } - public static function getSubscribedEvents() + public static function getSubscribedEvents(): array { return [ViewEvents::FILTER_BUILDER_PARAMETERS => 'handleContentEditForm']; } diff --git a/src/lib/EventListener/ViewTemplatesListener.php b/src/lib/EventListener/ViewTemplatesListener.php index 9e1df92..3ef188b 100644 --- a/src/lib/EventListener/ViewTemplatesListener.php +++ b/src/lib/EventListener/ViewTemplatesListener.php @@ -30,7 +30,7 @@ public function __construct(ConfigResolverInterface $configResolver) $this->configResolver = $configResolver; } - public static function getSubscribedEvents() + public static function getSubscribedEvents(): array { return [MVCEvents::PRE_CONTENT_VIEW => 'setViewTemplates']; } diff --git a/src/lib/Form/EventSubscriber/SuppressValidationSubscriber.php b/src/lib/Form/EventSubscriber/SuppressValidationSubscriber.php index 639d557..e7b65a6 100644 --- a/src/lib/Form/EventSubscriber/SuppressValidationSubscriber.php +++ b/src/lib/Form/EventSubscriber/SuppressValidationSubscriber.php @@ -18,7 +18,7 @@ */ class SuppressValidationSubscriber implements EventSubscriberInterface { - public static function getSubscribedEvents() + public static function getSubscribedEvents(): array { return [ FormEvents::POST_SUBMIT => [ diff --git a/src/lib/Form/EventSubscriber/UserFieldsSubscriber.php b/src/lib/Form/EventSubscriber/UserFieldsSubscriber.php index 834e35d..1337c53 100644 --- a/src/lib/Form/EventSubscriber/UserFieldsSubscriber.php +++ b/src/lib/Form/EventSubscriber/UserFieldsSubscriber.php @@ -20,7 +20,7 @@ */ class UserFieldsSubscriber implements EventSubscriberInterface { - public static function getSubscribedEvents() + public static function getSubscribedEvents(): array { return [ FormEvents::SUBMIT => 'handleUserAccountField', diff --git a/src/lib/Form/Processor/User/UserCancelFormProcessor.php b/src/lib/Form/Processor/User/UserCancelFormProcessor.php index 1afd24e..03f5ffb 100644 --- a/src/lib/Form/Processor/User/UserCancelFormProcessor.php +++ b/src/lib/Form/Processor/User/UserCancelFormProcessor.php @@ -31,7 +31,7 @@ public function __construct( $this->urlGenerator = $urlGenerator; } - public static function getSubscribedEvents() + public static function getSubscribedEvents(): array { return [ ContentFormEvents::USER_CANCEL => ['processCancel', 10], diff --git a/src/lib/Form/Processor/User/UserCreateFormProcessor.php b/src/lib/Form/Processor/User/UserCreateFormProcessor.php index 688b179..ee45b30 100644 --- a/src/lib/Form/Processor/User/UserCreateFormProcessor.php +++ b/src/lib/Form/Processor/User/UserCreateFormProcessor.php @@ -39,7 +39,7 @@ public function __construct( $this->urlGenerator = $urlGenerator; } - public static function getSubscribedEvents() + public static function getSubscribedEvents(): array { return [ ContentFormEvents::USER_CREATE => ['processCreate', 20], diff --git a/src/lib/Form/Processor/User/UserUpdateFormProcessor.php b/src/lib/Form/Processor/User/UserUpdateFormProcessor.php index dc258fc..3fc1536 100644 --- a/src/lib/Form/Processor/User/UserUpdateFormProcessor.php +++ b/src/lib/Form/Processor/User/UserUpdateFormProcessor.php @@ -41,7 +41,7 @@ public function __construct( $this->urlGenerator = $urlGenerator; } - public static function getSubscribedEvents() + public static function getSubscribedEvents(): array { return [ ContentFormEvents::USER_UPDATE => ['processUpdate', 20], diff --git a/src/lib/Form/Type/Content/BaseContentType.php b/src/lib/Form/Type/Content/BaseContentType.php index 344e5d7..4b2b329 100644 --- a/src/lib/Form/Type/Content/BaseContentType.php +++ b/src/lib/Form/Type/Content/BaseContentType.php @@ -30,7 +30,7 @@ public function getName() return $this->getBlockPrefix(); } - public function getBlockPrefix() + public function getBlockPrefix(): string { return 'ezplatform_content_forms_content'; } diff --git a/src/lib/Form/Type/Content/ContentDraftCreateType.php b/src/lib/Form/Type/Content/ContentDraftCreateType.php index c943e52..b3c5cab 100644 --- a/src/lib/Form/Type/Content/ContentDraftCreateType.php +++ b/src/lib/Form/Type/Content/ContentDraftCreateType.php @@ -21,7 +21,7 @@ public function getName() return $this->getBlockPrefix(); } - public function getBlockPrefix() + public function getBlockPrefix(): string { return 'ezplatform_content_forms_content_draft_create'; } diff --git a/src/lib/Form/Type/Content/ContentEditType.php b/src/lib/Form/Type/Content/ContentEditType.php index 5e3fc57..a3c14de 100644 --- a/src/lib/Form/Type/Content/ContentEditType.php +++ b/src/lib/Form/Type/Content/ContentEditType.php @@ -28,12 +28,12 @@ public function getName() return $this->getBlockPrefix(); } - public function getBlockPrefix() + public function getBlockPrefix(): string { return 'ezplatform_content_forms_content_edit'; } - public function getParent() + public function getParent(): ?string { return BaseContentType::class; } diff --git a/src/lib/Form/Type/Content/ContentFieldType.php b/src/lib/Form/Type/Content/ContentFieldType.php index 71985e6..2c94ffd 100644 --- a/src/lib/Form/Type/Content/ContentFieldType.php +++ b/src/lib/Form/Type/Content/ContentFieldType.php @@ -39,7 +39,7 @@ public function getName() return $this->getBlockPrefix(); } - public function getBlockPrefix() + public function getBlockPrefix(): string { return 'ezplatform_content_forms_content_field'; } diff --git a/src/lib/Form/Type/FieldType/Author/AuthorCollectionType.php b/src/lib/Form/Type/FieldType/Author/AuthorCollectionType.php index 7c266fb..45829d8 100644 --- a/src/lib/Form/Type/FieldType/Author/AuthorCollectionType.php +++ b/src/lib/Form/Type/FieldType/Author/AuthorCollectionType.php @@ -22,7 +22,7 @@ public function getName() return $this->getBlockPrefix(); } - public function getBlockPrefix() + public function getBlockPrefix(): string { return 'ezplatform_fieldtype_ezauthor_authors'; } @@ -38,7 +38,7 @@ public function configureOptions(OptionsResolver $resolver) ]); } - public function getParent() + public function getParent(): ?string { return CollectionType::class; } diff --git a/src/lib/Form/Type/FieldType/Author/AuthorEntryType.php b/src/lib/Form/Type/FieldType/Author/AuthorEntryType.php index 5621e89..52acfd8 100644 --- a/src/lib/Form/Type/FieldType/Author/AuthorEntryType.php +++ b/src/lib/Form/Type/FieldType/Author/AuthorEntryType.php @@ -33,7 +33,7 @@ public function getName() /** * @return string */ - public function getBlockPrefix() + public function getBlockPrefix(): string { return 'ezplatform_fieldtype_ezauthor_authors_entry'; } diff --git a/src/lib/Form/Type/FieldType/AuthorFieldType.php b/src/lib/Form/Type/FieldType/AuthorFieldType.php index 9adb46c..ed5fc16 100644 --- a/src/lib/Form/Type/FieldType/AuthorFieldType.php +++ b/src/lib/Form/Type/FieldType/AuthorFieldType.php @@ -54,7 +54,7 @@ public function getName() /** * @return string */ - public function getBlockPrefix() + public function getBlockPrefix(): string { return 'ezplatform_fieldtype_ezauthor'; } diff --git a/src/lib/Form/Type/FieldType/BinaryFileFieldType.php b/src/lib/Form/Type/FieldType/BinaryFileFieldType.php index 4ef9b2c..e263cd3 100644 --- a/src/lib/Form/Type/FieldType/BinaryFileFieldType.php +++ b/src/lib/Form/Type/FieldType/BinaryFileFieldType.php @@ -21,12 +21,12 @@ public function getName() return $this->getBlockPrefix(); } - public function getBlockPrefix() + public function getBlockPrefix(): string { return 'ezplatform_fieldtype_ezbinaryfile'; } - public function getParent() + public function getParent(): ?string { return BinaryBaseFieldType::class; } diff --git a/src/lib/Form/Type/FieldType/CheckboxFieldType.php b/src/lib/Form/Type/FieldType/CheckboxFieldType.php index 864f3d9..767fe91 100644 --- a/src/lib/Form/Type/FieldType/CheckboxFieldType.php +++ b/src/lib/Form/Type/FieldType/CheckboxFieldType.php @@ -32,12 +32,12 @@ public function getName() return $this->getBlockPrefix(); } - public function getBlockPrefix() + public function getBlockPrefix(): string { return 'ezplatform_fieldtype_ezboolean'; } - public function getParent() + public function getParent(): ?string { return CheckboxType::class; } diff --git a/src/lib/Form/Type/FieldType/CountryFieldType.php b/src/lib/Form/Type/FieldType/CountryFieldType.php index a8dc25b..9bfe750 100644 --- a/src/lib/Form/Type/FieldType/CountryFieldType.php +++ b/src/lib/Form/Type/FieldType/CountryFieldType.php @@ -36,12 +36,12 @@ public function getName() return $this->getBlockPrefix(); } - public function getBlockPrefix() + public function getBlockPrefix(): string { return 'ezplatform_fieldtype_ezcountry'; } - public function getParent() + public function getParent(): ?string { return ChoiceType::class; } diff --git a/src/lib/Form/Type/FieldType/DateFieldType.php b/src/lib/Form/Type/FieldType/DateFieldType.php index 1fdfe4c..fdf5d4e 100644 --- a/src/lib/Form/Type/FieldType/DateFieldType.php +++ b/src/lib/Form/Type/FieldType/DateFieldType.php @@ -36,12 +36,12 @@ public function getName() return $this->getBlockPrefix(); } - public function getBlockPrefix() + public function getBlockPrefix(): string { return 'ezplatform_fieldtype_ezdate'; } - public function getParent() + public function getParent(): ?string { return IntegerType::class; } diff --git a/src/lib/Form/Type/FieldType/DateTimeFieldType.php b/src/lib/Form/Type/FieldType/DateTimeFieldType.php index a9ca956..aaf2337 100644 --- a/src/lib/Form/Type/FieldType/DateTimeFieldType.php +++ b/src/lib/Form/Type/FieldType/DateTimeFieldType.php @@ -26,12 +26,12 @@ public function getName() return $this->getBlockPrefix(); } - public function getBlockPrefix() + public function getBlockPrefix(): string { return 'ezplatform_fieldtype_ezdatetime'; } - public function getParent() + public function getParent(): ?string { return IntegerType::class; } diff --git a/src/lib/Form/Type/FieldType/FloatFieldType.php b/src/lib/Form/Type/FieldType/FloatFieldType.php index ce4aa62..43f01d8 100644 --- a/src/lib/Form/Type/FieldType/FloatFieldType.php +++ b/src/lib/Form/Type/FieldType/FloatFieldType.php @@ -35,12 +35,12 @@ public function getName() return $this->getBlockPrefix(); } - public function getBlockPrefix() + public function getBlockPrefix(): string { return 'ezplatform_fieldtype_ezfloat'; } - public function getParent() + public function getParent(): ?string { return NumberType::class; } diff --git a/src/lib/Form/Type/FieldType/ISBNFieldType.php b/src/lib/Form/Type/FieldType/ISBNFieldType.php index b738d5c..6151c39 100644 --- a/src/lib/Form/Type/FieldType/ISBNFieldType.php +++ b/src/lib/Form/Type/FieldType/ISBNFieldType.php @@ -32,12 +32,12 @@ public function getName() return $this->getBlockPrefix(); } - public function getBlockPrefix() + public function getBlockPrefix(): string { return 'ezplatform_fieldtype_ezisbn'; } - public function getParent() + public function getParent(): ?string { return TextType::class; } diff --git a/src/lib/Form/Type/FieldType/ImageAssetFieldType.php b/src/lib/Form/Type/FieldType/ImageAssetFieldType.php index 11aacf4..31992a6 100644 --- a/src/lib/Form/Type/FieldType/ImageAssetFieldType.php +++ b/src/lib/Form/Type/FieldType/ImageAssetFieldType.php @@ -55,7 +55,7 @@ public function getName() return $this->getBlockPrefix(); } - public function getBlockPrefix() + public function getBlockPrefix(): string { return 'ezplatform_fieldtype_ezimageasset'; } diff --git a/src/lib/Form/Type/FieldType/ImageFieldType.php b/src/lib/Form/Type/FieldType/ImageFieldType.php index 98550cf..d8c2659 100644 --- a/src/lib/Form/Type/FieldType/ImageFieldType.php +++ b/src/lib/Form/Type/FieldType/ImageFieldType.php @@ -35,12 +35,12 @@ public function getName() return $this->getBlockPrefix(); } - public function getBlockPrefix() + public function getBlockPrefix(): string { return 'ezplatform_fieldtype_ezimage'; } - public function getParent() + public function getParent(): ?string { return BinaryBaseFieldType::class; } diff --git a/src/lib/Form/Type/FieldType/IntegerFieldType.php b/src/lib/Form/Type/FieldType/IntegerFieldType.php index 4e7acf6..99ca59b 100644 --- a/src/lib/Form/Type/FieldType/IntegerFieldType.php +++ b/src/lib/Form/Type/FieldType/IntegerFieldType.php @@ -35,12 +35,12 @@ public function getName() return $this->getBlockPrefix(); } - public function getBlockPrefix() + public function getBlockPrefix(): string { return 'ezplatform_fieldtype_ezinteger'; } - public function getParent() + public function getParent(): ?string { return IntegerType::class; } diff --git a/src/lib/Form/Type/FieldType/KeywordFieldType.php b/src/lib/Form/Type/FieldType/KeywordFieldType.php index 5b7faf7..7afd73d 100644 --- a/src/lib/Form/Type/FieldType/KeywordFieldType.php +++ b/src/lib/Form/Type/FieldType/KeywordFieldType.php @@ -23,12 +23,12 @@ public function getName() return $this->getBlockPrefix(); } - public function getBlockPrefix() + public function getBlockPrefix(): string { return 'ezplatform_fieldtype_ezkeyword'; } - public function getParent() + public function getParent(): ?string { return TextType::class; } diff --git a/src/lib/Form/Type/FieldType/MapLocationFieldType.php b/src/lib/Form/Type/FieldType/MapLocationFieldType.php index 9f55c4d..c1b418d 100644 --- a/src/lib/Form/Type/FieldType/MapLocationFieldType.php +++ b/src/lib/Form/Type/FieldType/MapLocationFieldType.php @@ -37,7 +37,7 @@ public function getName() return $this->getBlockPrefix(); } - public function getBlockPrefix() + public function getBlockPrefix(): string { return 'ezplatform_fieldtype_ezgmaplocation'; } diff --git a/src/lib/Form/Type/FieldType/MediaFieldType.php b/src/lib/Form/Type/FieldType/MediaFieldType.php index 9483e18..0f60c7a 100644 --- a/src/lib/Form/Type/FieldType/MediaFieldType.php +++ b/src/lib/Form/Type/FieldType/MediaFieldType.php @@ -25,12 +25,12 @@ public function getName() return $this->getBlockPrefix(); } - public function getBlockPrefix() + public function getBlockPrefix(): string { return 'ezplatform_fieldtype_ezmedia'; } - public function getParent() + public function getParent(): ?string { return BinaryBaseFieldType::class; } diff --git a/src/lib/Form/Type/FieldType/RelationFieldType.php b/src/lib/Form/Type/FieldType/RelationFieldType.php index fafe5eb..1c277ad 100644 --- a/src/lib/Form/Type/FieldType/RelationFieldType.php +++ b/src/lib/Form/Type/FieldType/RelationFieldType.php @@ -47,12 +47,12 @@ public function getName() return $this->getBlockPrefix(); } - public function getBlockPrefix() + public function getBlockPrefix(): string { return 'ezplatform_fieldtype_ezobjectrelation'; } - public function getParent() + public function getParent(): ?string { return IntegerType::class; } diff --git a/src/lib/Form/Type/FieldType/RelationListFieldType.php b/src/lib/Form/Type/FieldType/RelationListFieldType.php index c16c4ea..de7642e 100644 --- a/src/lib/Form/Type/FieldType/RelationListFieldType.php +++ b/src/lib/Form/Type/FieldType/RelationListFieldType.php @@ -47,12 +47,12 @@ public function getName() return $this->getBlockPrefix(); } - public function getBlockPrefix() + public function getBlockPrefix(): string { return 'ezplatform_fieldtype_ezobjectrelationlist'; } - public function getParent() + public function getParent(): ?string { return TextType::class; } diff --git a/src/lib/Form/Type/FieldType/SelectionFieldType.php b/src/lib/Form/Type/FieldType/SelectionFieldType.php index 28877f7..57e3d53 100644 --- a/src/lib/Form/Type/FieldType/SelectionFieldType.php +++ b/src/lib/Form/Type/FieldType/SelectionFieldType.php @@ -25,12 +25,12 @@ public function getName() return $this->getBlockPrefix(); } - public function getBlockPrefix() + public function getBlockPrefix(): string { return 'ezplatform_fieldtype_ezselection'; } - public function getParent() + public function getParent(): ?string { return ChoiceType::class; } diff --git a/src/lib/Form/Type/FieldType/TextBlockFieldType.php b/src/lib/Form/Type/FieldType/TextBlockFieldType.php index 74cd153..842c7e4 100644 --- a/src/lib/Form/Type/FieldType/TextBlockFieldType.php +++ b/src/lib/Form/Type/FieldType/TextBlockFieldType.php @@ -35,12 +35,12 @@ public function getName() return $this->getBlockPrefix(); } - public function getBlockPrefix() + public function getBlockPrefix(): string { return 'ezplatform_fieldtype_eztext'; } - public function getParent() + public function getParent(): ?string { return TextareaType::class; } diff --git a/src/lib/Form/Type/FieldType/TextLineFieldType.php b/src/lib/Form/Type/FieldType/TextLineFieldType.php index b55f413..c3b8e39 100644 --- a/src/lib/Form/Type/FieldType/TextLineFieldType.php +++ b/src/lib/Form/Type/FieldType/TextLineFieldType.php @@ -35,12 +35,12 @@ public function getName() return $this->getBlockPrefix(); } - public function getBlockPrefix() + public function getBlockPrefix(): string { return 'ezplatform_fieldtype_ezstring'; } - public function getParent() + public function getParent(): ?string { return TextType::class; } diff --git a/src/lib/Form/Type/FieldType/TimeFieldType.php b/src/lib/Form/Type/FieldType/TimeFieldType.php index 24dc3ae..38a46ef 100644 --- a/src/lib/Form/Type/FieldType/TimeFieldType.php +++ b/src/lib/Form/Type/FieldType/TimeFieldType.php @@ -26,12 +26,12 @@ public function getName() return $this->getBlockPrefix(); } - public function getBlockPrefix() + public function getBlockPrefix(): string { return 'ezplatform_fieldtype_eztime'; } - public function getParent() + public function getParent(): ?string { return IntegerType::class; } diff --git a/src/lib/Form/Type/FieldType/UrlFieldType.php b/src/lib/Form/Type/FieldType/UrlFieldType.php index 246f032..7f3431f 100644 --- a/src/lib/Form/Type/FieldType/UrlFieldType.php +++ b/src/lib/Form/Type/FieldType/UrlFieldType.php @@ -35,7 +35,7 @@ public function getName() return $this->getBlockPrefix(); } - public function getBlockPrefix() + public function getBlockPrefix(): string { return 'ezplatform_fieldtype_ezurl'; } diff --git a/src/lib/Form/Type/FieldType/UserAccountFieldType.php b/src/lib/Form/Type/FieldType/UserAccountFieldType.php index 5079ae6..dafaf82 100644 --- a/src/lib/Form/Type/FieldType/UserAccountFieldType.php +++ b/src/lib/Form/Type/FieldType/UserAccountFieldType.php @@ -26,7 +26,7 @@ public function getName() return $this->getBlockPrefix(); } - public function getBlockPrefix() + public function getBlockPrefix(): string { return 'ezplatform_fieldtype_ezuser'; } diff --git a/src/lib/Form/Type/JsonArrayType.php b/src/lib/Form/Type/JsonArrayType.php index a081198..54b2552 100644 --- a/src/lib/Form/Type/JsonArrayType.php +++ b/src/lib/Form/Type/JsonArrayType.php @@ -15,7 +15,7 @@ final class JsonArrayType extends AbstractType { - public function getParent() + public function getParent(): ?string { return HiddenType::class; } diff --git a/src/lib/Form/Type/RelationType.php b/src/lib/Form/Type/RelationType.php index f126cc9..e569f48 100644 --- a/src/lib/Form/Type/RelationType.php +++ b/src/lib/Form/Type/RelationType.php @@ -37,7 +37,7 @@ public function __construct( $this->translator = $translator; } - public function getBlockPrefix() + public function getBlockPrefix(): string { return 'ibexa_form_type_relation'; } diff --git a/src/lib/Form/Type/SwitcherType.php b/src/lib/Form/Type/SwitcherType.php index 9989796..3c65588 100644 --- a/src/lib/Form/Type/SwitcherType.php +++ b/src/lib/Form/Type/SwitcherType.php @@ -14,7 +14,7 @@ class SwitcherType extends AbstractType { - public function getParent() + public function getParent(): ?string { return CheckboxType::class; } @@ -24,7 +24,7 @@ public function getName() return $this->getBlockPrefix(); } - public function getBlockPrefix() + public function getBlockPrefix(): string { return 'switcher'; } diff --git a/src/lib/Form/Type/User/BaseUserType.php b/src/lib/Form/Type/User/BaseUserType.php index 0189305..ee0e127 100644 --- a/src/lib/Form/Type/User/BaseUserType.php +++ b/src/lib/Form/Type/User/BaseUserType.php @@ -29,12 +29,12 @@ public function getName() return $this->getBlockPrefix(); } - public function getBlockPrefix() + public function getBlockPrefix(): string { return 'ezplatform_content_forms_user'; } - public function getParent() + public function getParent(): ?string { return BaseContentType::class; } diff --git a/src/lib/Form/Type/User/UserCreateType.php b/src/lib/Form/Type/User/UserCreateType.php index ba619dd..8f0c356 100644 --- a/src/lib/Form/Type/User/UserCreateType.php +++ b/src/lib/Form/Type/User/UserCreateType.php @@ -28,12 +28,12 @@ public function getName() return $this->getBlockPrefix(); } - public function getBlockPrefix() + public function getBlockPrefix(): string { return 'ezplatform_content_forms_user_create'; } - public function getParent() + public function getParent(): ?string { return BaseUserType::class; } diff --git a/src/lib/Form/Type/User/UserUpdateType.php b/src/lib/Form/Type/User/UserUpdateType.php index 680bd8f..2b45737 100644 --- a/src/lib/Form/Type/User/UserUpdateType.php +++ b/src/lib/Form/Type/User/UserUpdateType.php @@ -28,12 +28,12 @@ public function getName() return $this->getBlockPrefix(); } - public function getBlockPrefix() + public function getBlockPrefix(): string { return 'ezplatform_content_forms_user_update'; } - public function getParent() + public function getParent(): ?string { return BaseUserType::class; } diff --git a/src/lib/Validator/Constraints/FieldValue.php b/src/lib/Validator/Constraints/FieldValue.php index 46824d0..746f5a2 100644 --- a/src/lib/Validator/Constraints/FieldValue.php +++ b/src/lib/Validator/Constraints/FieldValue.php @@ -17,12 +17,12 @@ class FieldValue extends Constraint { public $message = 'ez.field.value'; - public function getTargets() + public function getTargets(): string { return self::CLASS_CONSTRAINT; } - public function validatedBy() + public function validatedBy(): string { return FieldValueValidator::class; }