Skip to content

Commit

Permalink
SDK-2585 update visitor
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyspryker committed Oct 24, 2023
1 parent 494d26b commit 318e745
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Builder/Visitor/AddPluginToPluginListVisitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 318e745

Please sign in to comment.