Skip to content

Commit 45d24eb

Browse files
committed
Do not stop all visitors if FormVisitor fails
1 parent a28f4be commit 45d24eb

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/Visitor/Php/Symfony/FormTypeChoices.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function enterNode(Node $node)
4141
// only Traverse *Type
4242
if ($node instanceof Stmt\Class_) {
4343
if (substr($node->name, -4) !== 'Type') {
44-
return NodeTraverser::DONT_TRAVERSE_CHILDREN;
44+
return;
4545
}
4646
}
4747

src/Visitor/Php/Symfony/FormTypeLabelExplicit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function enterNode(Node $node)
2828
// only Traverse *Type
2929
if ($node instanceof Stmt\Class_) {
3030
if (substr($node->name, -4) !== 'Type') {
31-
return NodeTraverser::DONT_TRAVERSE_CHILDREN;
31+
return;
3232
}
3333
}
3434

src/Visitor/Php/Symfony/FormTypeLabelImplicit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function enterNode(Node $node)
2828
// only Traverse *Type
2929
if ($node instanceof Stmt\Class_) {
3030
if (substr($node->name, -4) !== 'Type') {
31-
return NodeTraverser::DONT_TRAVERSE_CHILDREN;
31+
return;
3232
}
3333
}
3434

src/Visitor/Php/Symfony/FormTypePlaceholder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function enterNode(Node $node)
2828
// only Traverse *Type
2929
if ($node instanceof Stmt\Class_) {
3030
if (substr($node->name, -4) !== 'Type') {
31-
return NodeTraverser::DONT_TRAVERSE_CHILDREN;
31+
return;
3232
}
3333
}
3434

0 commit comments

Comments
 (0)