10000 minor #51385 [Validator]  replace annotations with attributes (xabbuh) · symfony/symfony@a70e5e1 · GitHub
[go: up one dir, main page]

Skip to content

Commit a70e5e1

Browse files
committed
minor #51385 [Validator]  replace annotations with attributes (xabbuh)
This PR was merged into the 6.4 branch. Discussion ---------- [Validator]  replace annotations with attributes | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | | License | MIT | Doc PR | Commits ------- cf3879c replace annotations with attributes
2 parents eaa33cc + cf3879c commit a70e5e1

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/Symfony/Component/Validator/Tests/Dummy/DummyClassOne.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ class DummyClassOne
3030

3131
/**
3232
* @var DummyClassTwo|null
33-
*
34-
* @Assert\Valid()
3533
*/
34+
#[Assert\Valid]
3635
public $dummyClassTwo;
3736
}

src/Symfony/Component/Validator/Tests/Dummy/DummyClassTwo.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ class DummyClassTwo
3030

3131
/**
3232
* @var DummyClassOne|null
33-
*
34-
* @Assert\DisableAutoMapping()
3533
*/
34+
#[Assert\DisableAutoMapping]
3635
public $dummyClassOne;
3736
}

0 commit comments

Comments
 (0)
0