Skip to content

Commit b788799

Browse files
committed
Improving code following PR comments
1 parent e80b53a commit b788799

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SQLParser/Node/Traverser/CompositeVisitor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function enterNode(NodeInterface $node)
4545
$result = $visitor->enterNode($node);
4646
if ($result instanceof NodeInterface) {
4747
$node = $result;
48-
} elseif ($result == NodeTraverser::DONT_TRAVERSE_CHILDREN) {
48+
} elseif ($result === NodeTraverser::DONT_TRAVERSE_CHILDREN) {
4949
return NodeTraverser::DONT_TRAVERSE_CHILDREN;
5050
} elseif ($result !== null) {
5151
throw new TraverserException('Unexpected return value for enterNode. Return value should be a NodeInterface instance or the NodeTraverser::DONT_TRAVERSE_CHILDREN constant or null.');

0 commit comments

Comments
 (0)