Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Concat does not generate mutant when both operands are the same #1602

Merged
2 changes: 1 addition & 1 deletion src/Mutator/Operator/Concat.php
Expand Up @@ -93,7 +93,7 @@ public function mutate(Node $node): iterable

$newNode = new Node\Expr\BinaryOp\Concat($left, $right);

/** @psalm-suppress ImpureMethodCall */
michalbundyra marked this conversation as resolved.
Show resolved Hide resolved
/* @psalm-suppress ImpureMethodCall */
if ($printer->prettyPrint([clone $node]) !== $printer->prettyPrint([$newNode])) {
yield $newNode;
}
Expand Down