File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,8 @@ You can validate each of these constraints sequentially to solve these issues:
4646
4747 class Place
4848 {
49+ private const string ADDRESS_REGEX = '...';
50+
4951 #[Assert\Sequentially([
5052 new Assert\NotNull,
5153 new Assert\Type('string'),
@@ -54,6 +56,8 @@ You can validate each of these constraints sequentially to solve these issues:
5456 new AcmeAssert\Geolocalizable,
5557 ])]
5658 public string $address;
59+
60+ // ...
5761 }
5862
5963 .. code-block :: yaml
@@ -105,6 +109,10 @@ You can validate each of these constraints sequentially to solve these issues:
105109
106110 class Place
107111 {
112+ private const string ADDRESS_REGEX = '...';
113+
114+ // ...
115+
108116 public static function loadValidatorMetadata(ClassMetadata $metadata): void
109117 {
110118 $metadata->addPropertyConstraint('address', new Assert\Sequentially([
You can’t perform that action at this time.
0 commit comments