diff --git a/module/Olcs/src/Form/Model/Fieldset/Message/Create.php b/module/Olcs/src/Form/Model/Fieldset/Message/Create.php index 2c2c84b7f..9ec239155 100644 --- a/module/Olcs/src/Form/Model/Fieldset/Message/Create.php +++ b/module/Olcs/src/Form/Model/Fieldset/Message/Create.php @@ -54,11 +54,8 @@ class Create * }) * @Form\Required(true) * @Form\Type(\Laminas\Form\Element\Textarea::class) - * @Form\Filter({"name": \Laminas\Filter\StringTrim::class}) - * @Form\Validator({ - * "name": \Laminas\Validator\StringLength::class, - * "options": {"min": 5, "max" :1000} - * }) + * @Form\Filter(\Laminas\Filter\StringTrim::class) + * @Form\Validator(\Laminas\Validator\StringLength::class, options={"min": 5, "max": 1000}) */ public ?TextArea $messageContent = null; diff --git a/module/Olcs/src/Form/Model/Fieldset/Message/Reply.php b/module/Olcs/src/Form/Model/Fieldset/Message/Reply.php index debb24e15..3f432d797 100644 --- a/module/Olcs/src/Form/Model/Fieldset/Message/Reply.php +++ b/module/Olcs/src/Form/Model/Fieldset/Message/Reply.php @@ -19,11 +19,8 @@ class Reply * @Form\Options({"label": "You can enter up to 1000 characters"}) * @Form\Required(true) * @Form\Type(\Laminas\Form\Element\Textarea::class) - * @Form\Filter({"name": \Laminas\Filter\StringTrim::class}) - * @Form\Validator({ - * "name": \Laminas\Validator\StringLength::class, - * "options": {"max":1000} - * }) + * @Form\Filter(\Laminas\Filter\StringTrim::class) + * @Form\Validator(\Laminas\Validator\StringLength::class, options={"min": 5, "max": 1000}) */ public ?TextArea $reply = null;