Skip to content

Commit 32537b9

Browse files
committed
Fix AbstractHtml::expandTabs() $tabSize undeclared
Signed-off-by: Jack Cherng <[email protected]>
1 parent 37bd345 commit 32537b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Renderer/Html/AbstractHtml.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ protected function expandTabs(string $string, int $tabSize = 4, bool $onlyLeadin
251251
if ($onlyLeadingTabs) {
252252
return \preg_replace_callback(
253253
"/^[ \t]{1,}/mS", // tabs and spaces may be mixed
254-
function (array $matches): string {
254+
function (array $matches) use ($tabSize): string {
255255
return \str_replace("\t", \str_repeat(' ', $tabSize), $matches[0]);
256256
},
257257
$string

0 commit comments

Comments
 (0)