From bdb0db25b0ee4147505f767482a27faaf9ec1301 Mon Sep 17 00:00:00 2001 From: Olha Livitchuk Date: Wed, 6 Nov 2024 22:16:00 +0200 Subject: [PATCH] FRW-8773 Removed leftovers --- src/Builder/Visitor/AddPluginToPluginListVisitor.php | 4 ---- 1 file changed, 4 deletions(-) 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; }