diff --git a/src/Builder/Visitor/AddPluginToPluginListVisitor.php b/src/Builder/Visitor/AddPluginToPluginListVisitor.php index d5ee6d82..bb6312c7 100644 --- a/src/Builder/Visitor/AddPluginToPluginListVisitor.php +++ b/src/Builder/Visitor/AddPluginToPluginListVisitor.php @@ -366,10 +366,6 @@ protected function addNewPluginInstance(If_ $statement): void { foreach ($statement->stmts as $stmt) { if ($stmt instanceof Expression && $stmt->expr instanceof Assign) { -// if ($stmt->expr->expr instanceof New_ && $this->isArrayItemEqual($stmt->expr->expr)) { -// continue; -// } - if ($stmt->expr->expr instanceof New_ && $stmt->expr->expr->class->toString() === $this->classMetadataTransfer->getSource()) { continue; }