Skip to content

Commit c4a2cf9

Browse files
committed
Fix a code example
1 parent 7d3dc38 commit c4a2cf9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

reference/constraints/Sequentially.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff 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([

0 commit comments

Comments
 (0)