Textinput validate convert int to string
php
When I do a dd($data) it returns the TextInput fields as int, but if I pass it $this->validate() it converts them to string?
2 Replies
maybe prefix it with
(int)
?What I don't understand is why $this->form->getState() validates the form and doesn't convert it to a string but $this->validate validates and converts it to a string.