Skip to content

Commit 68054ca

Browse files
authored
Fixed symfony constraints visitor (#182)
1 parent 4975dfa commit 68054ca

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Visitor/Php/Symfony/ValidationAnnotation.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ public function enterNode(Node $node): ?Node
7373
return null;
7474
}
7575

76-
$this->extractFromConstraints($metadata->constraints);
77-
foreach ($metadata->members as $members) {
78-
foreach ($members as $member) {
79-
$this->extractFromConstraints($member->constraints);
76+
$this->extractFromConstraints($metadata->getConstraints());
77+
foreach ($metadata->getConstrainedProperties() as $property) {
78+
foreach ($metadata->getPropertyMetadata($property) as $member) {
79+
$this->extractFromConstraints($member->getConstraints());
8080
}
8181
}
8282

0 commit comments

Comments
 (0)