Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

chore: form annotation changes #63

Merged
merged 1 commit into from
Feb 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions module/Olcs/src/Form/Model/Fieldset/Message/Create.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
7 changes: 2 additions & 5 deletions module/Olcs/src/Form/Model/Fieldset/Message/Reply.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Loading