Skip to content

Commit dc6f6a2

Browse files
committed
fix
1 parent a95b512 commit dc6f6a2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rules/CodingStyle/Rector/ClassMethod/BinaryOpStandaloneAssignsToDirectRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ private function matchToVariableAssignExpr(Stmt $stmt): ?VariableAndExprAssign
133133
}
134134

135135
// skip complex cases
136-
if ($assign->expr instanceof CallLike && $assign->expr->args !== []) {
136+
if ($assign->expr instanceof CallLike && ! $assign->expr->isFirstClassCallable() && $assign->expr->getArgs() !== []) {
137137
return null;
138138
}
139139

0 commit comments

Comments
 (0)