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.
2 parents e409aa4 + ca7feae commit 38fdcfaCopy full SHA for 38fdcfa
src/Toolkit/Utility/Str.php
@@ -467,6 +467,7 @@ public static function expandLeadingTabs(
467
foreach (array_chunk($lines, 2) as $i => [$line, $eol]) {
468
if (!$i && $preserveLine1) {
469
$expanded .= $line . $eol;
470
+ $column = 1;
471
continue;
472
}
473
$parts = explode("\t", $line);
tests/unit/Toolkit/Utility/StrTest.php
@@ -865,6 +865,13 @@ public static function expandLeadingTabsProvider(): array
865
EOF,
866
4,
867
],
868
+ [
869
+ "/* the printed value would be\n \$i before the increment\n (post-increment) */",
870
+ "/* the printed value would be\n\t\t \$i before the increment\n\t\t (post-increment) */",
871
+ 8,
872
+ true,
873
+ 21,
874
+ ],
875
];
876
877
0 commit comments