From 318e745eaaec9aad19044b659cb814b54920bc1f Mon Sep 17 00:00:00 2001 From: Sergey Romankov Date: Tue, 24 Oct 2023 17:33:21 +0300 Subject: [PATCH] SDK-2585 update visitor --- src/Builder/Visitor/AddPluginToPluginListVisitor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Builder/Visitor/AddPluginToPluginListVisitor.php b/src/Builder/Visitor/AddPluginToPluginListVisitor.php index ef1090c1..38bad1dd 100644 --- a/src/Builder/Visitor/AddPluginToPluginListVisitor.php +++ b/src/Builder/Visitor/AddPluginToPluginListVisitor.php @@ -213,7 +213,7 @@ protected function addNewPluginWithConditionIntoList(ClassMethod $node): Node if ($returnStmt->expr instanceof FuncCall || $returnStmt->expr instanceof Array_) { $newStmts[] = $this->createAssignArray( static::PLUGINS_VARIBLE, - $returnStmt->expr instanceof Array_ ? $returnStmt->expr : null + $returnStmt->expr instanceof Array_ ? $returnStmt->expr : null, ); $newStmts[] = $this->createNewConditionStatement((new BuilderFactory())->var(static::PLUGINS_VARIBLE)); $returnStmt->expr = (new BuilderFactory())->var(static::PLUGINS_VARIBLE);