Skip to content

Commit 039863a

Browse files
committed
fix indent
1 parent c6a508d commit 039863a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Console/DowngradeCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ private function processFile(string $file, array $visitors): void
157157
$newStmts = $traverser->traverse($newStmts);
158158
}
159159

160-
$printer = new PhpPrinter(['indent' => str_repeat($indentDetector->indentCharacter, $indentDetector->indentSize)]);
160+
$printer = new PhpPrinter(['indent' => $indentDetector->indentCharacter]);
161161
$newCode = $printer->printFormatPreserving($newStmts, $oldStmts, $oldTokens);
162162
$result = file_put_contents($file, $newCode);
163163
if ($result === false) {

src/Php/PhpPrinterIndentationDetectorVisitor.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function enterNode(Node $node)
6060
continue;
6161
}
6262

63-
$char = $match[1];
63+
$char = $match[1][0];
6464
$size = $l;
6565
break;
6666
}

0 commit comments

Comments
 (0)