Skip to content

Commit d722c32

Browse files
committed
add failing fixture zero offset, negative length
1 parent 7180a0a commit d722c32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rules-tests/DowngradePhp80/Rector/FuncCall/DowngradeSubstrFalsyRector/Fixture/with_zero_offset_length_negative.php.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class WithZeroOffsetLengthNegative
99
{
1010
public function run(string $name)
1111
{
12-
return substr($name, 0, -1);
12+
return substr($name, 0, -5);
1313
}
1414
}
1515

@@ -26,7 +26,7 @@ class WithZeroOffsetLengthNegative
2626
{
2727
public function run(string $name)
2828
{
29-
return (string) substr($name, 0, -1);
29+
return (string) substr($name, 0, -5);
3030
}
3131
}
3232

0 commit comments

Comments
 (0)