You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I've a very simple
Data
with two properties: astring
and aboolean
Trying to decode the rules of this class with
MyData::getValidationRules([])
those are converted in:so if I don't send the
isEnabled
in the body I get the error:the constructor requires 2 parameters, 1 given
In this case, I must manually add
#[Required]
on theisEnabled
property.Is it correct that the
boolean
property does not automatically infer therequired
as thestring
does?Beta Was this translation helpful? Give feedback.
All reactions