-
How do I avoid all types of mutations that occur in the 'while' or other types of 'loops'? Right now, all I can do is shrink the timeout. + while (self::char_at($result, $start) === ' ') {
- while (self::char_at($result, $start) !== ' ') {
$start++;
} |
Beta Was this translation helpful? Give feedback.
Answered by
sanmai
Jul 1, 2021
Replies: 1 comment 1 reply
-
This should do it: |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
maks-rafalko
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This should do it:
https://infection.github.io/guide/how-to.html#Do-not-mutate-the-source-code-matched-by-regular-expression