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
class Profile
{
#[Nested]
public ?Requisites$requisites = null;
}
class Requisites
{
#[Required]
publicstring$bik;
#[Required]
publicstring$rs;
}
RulesDumper::asArray((newObjectDataSet(newProfile()))->getRules());
Result will be:
'requisites' => [
0 => [
0 => 'nested'
'noRulesWithNoObjectMessage' => [
'template' => 'Nested rule without rules can be used for objects only.'
'parameters' => []
]
'incorrectDataSetTypeMessage' => [
'template' => 'An object data set data can only have an array type.'
'parameters' => []
]
'incorrectInputMessage' => [
'template' => 'The value must be an array or an object.'
'parameters' => []
]
'noPropertyPathMessage' => [
'template' => 'Property "{path}" is not found.'
'parameters' => []
]
'requirePropertyPath' => false
'skipOnEmpty' => false
'skipOnError' => false
'rules' => null
]
]
The text was updated successfully, but these errors were encountered:
Result will be:
The text was updated successfully, but these errors were encountered: