diff --git a/rules/CodeQuality/Rector/NotEqual/CommonNotEqualRector.php b/rules/CodeQuality/Rector/NotEqual/CommonNotEqualRector.php index 0cc0b9da1c4..eb87bf56d54 100644 --- a/rules/CodeQuality/Rector/NotEqual/CommonNotEqualRector.php +++ b/rules/CodeQuality/Rector/NotEqual/CommonNotEqualRector.php @@ -75,7 +75,7 @@ private function doesNotEqualContainsShipCompareToken(NotEqual $notEqual): bool $tokenStartPos = $notEqual->getStartTokenPos(); $tokenEndPos = $notEqual->getEndTokenPos(); - for ($i = $tokenStartPos; $i < $tokenEndPos; $i++) { + for ($i = $tokenStartPos; $i < $tokenEndPos; ++$i) { $token = $this->file->getOldTokens()[$i]; if (! isset($token[1])) { continue;