You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The same issue as described in #1524, it was closed, but not resolved.
Can we somehow skip this mutation, or I need to change my code (for example using str_repeat...) to pass the infection?
Thanks
The text was updated successfully, but these errors were encountered:
or I need to change my code (for example using str_repeat...)
good solution, if the goal of the code is to repeat the same string X times
What we can do on Infection side, is to not mutate the code when we see that the variables names are exactly the same on the left and right side of concatenation. So $x . $x won't produce any mutants.
…#1602)
* feat: Concat does not generate mutant when both operands are the same
Closes#1601
* Update ConcatTest.php
* use prettyPrint instead of prettyPrintExpr
* add clone per review suggestion
* suppress psalm issue - ImpureMethodCall
- per @maks-rafalko
* Update Concat.php
* suppress issue in psalm.xml
Related to #1524
https://infection-php.dev/r/lpdl
The same issue as described in #1524, it was closed, but not resolved.
Can we somehow skip this mutation, or I need to change my code (for example using str_repeat...) to pass the infection?
Thanks
The text was updated successfully, but these errors were encountered: