Skip to content

Commit ccd2180

Browse files
committed
[DowngradePhp80] Add DowngradeSubstrFalsyRector
1 parent 6b588e6 commit ccd2180

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Issues/DowngradeHeredoc/Fixture/next_arg.php.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -474,9 +474,9 @@ final class NextArg
474474
$lineString = trim($lineString);
475475

476476
if (strncmp($lineString, '/**', strlen('/**')) === 0) {
477-
$lineString = substr($lineString, 3);
477+
$lineString = (string) substr($lineString, 3);
478478
} elseif (strncmp($lineString, '*', strlen('*')) === 0) {
479-
$lineString = substr($lineString, 1);
479+
$lineString = (string) substr($lineString, 1);
480480
}
481481

482482
return trim($lineString);

0 commit comments

Comments
 (0)