Skip to content

Commit e80b53a

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

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
@@ -68,7 +68,7 @@ public function leaveNode(NodeInterface $node)
6868
$result = $visitor->leaveNode($node);
6969
if ($result instanceof NodeInterface) {
7070
$node = $result;
71-
} elseif ($result == NodeTraverser::REMOVE_NODE) {
71+
} elseif ($result === NodeTraverser::REMOVE_NODE) {
7272
return NodeTraverser::REMOVE_NODE;
7373
} elseif ($result !== null) {
7474
throw new TraverserException('Unexpected return value for leaveNode. Return value should be a NodeInterface instance or the NodeTraverser::REMOVE_NODE constant or null.');

0 commit comments

Comments
 (0)