Skip to content

Commit 2fd6196

Browse files
committed
fix merge NodeFatory
1 parent 665ecdb commit 2fd6196

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/SQLParser/Node/NodeFactory.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -632,12 +632,6 @@ public static function simplify($nodes)
632632
$instance->setLeftOperand($leftOperand);
633633
$instance->setRightOperand($rightOperand);
634634

635-
$leftOperand = array_shift($operands);
636-
$rightOperand = array_shift($operands);
637-
$instance = new self::$OPERATOR_TO_CLASS[$operation]();
638-
$instance->setLeftOperand($leftOperand);
639-
$instance->setRightOperand($rightOperand);
640-
641635
return $instance;
642636
} elseif (isset(self::$OPERATOR_TO_CLASS[$operation]) && is_subclass_of(self::$OPERATOR_TO_CLASS[$operation], 'SQLParser\Node\AbstractManyInstancesOperator')) {
643637
$instance = new self::$OPERATOR_TO_CLASS[$operation]();

0 commit comments

Comments
 (0)