We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent daad186 commit 30b2074Copy full SHA for 30b2074
rules/DowngradePhp80/Rector/FuncCall/DowngradeSubstrFalsyRector.php
@@ -100,7 +100,7 @@ public function refactor(Node $node): ?Node
100
101
if ($offset instanceof Arg) {
102
$offsetType = $this->getType($offset->value);
103
- if ($offsetType instanceof ConstantIntegerType && $offsetType->getValue() === 0) {
+ if ($offsetType instanceof ConstantIntegerType && $offsetType->getValue() <= 0) {
104
return null;
105
}
106
0 commit comments