Multiple attributes are reported as unknown when using array notation.
<?php
use Symfony\Component\Validator\Constraints as Assert;
class User {
#[
Assert\NotNull(message: 'Field is mandatory'),
Assert\NotBlank(message: 'Field is mandatory'),
]
private string $name;
}
This only seems to happen when attributes have parameters as #[Assert\NotNull, Assert\NotBlank] doesn't rise errors.
Multiple attributes are reported as unknown when using array notation.
This only seems to happen when attributes have parameters as
#[Assert\NotNull, Assert\NotBlank]
doesn't rise errors.