Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7a3750e

Browse files
committed
Merge branch '6.4' into 7.3
* 6.4: Fix a code example
2 parents50f1f4d +c4a2cf9 commit7a3750e

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)

[8]ページ先頭

©2009-2025 Movatter.jp