diff --git a/src/PhpParser/Printer/BetterStandardPrinter.php b/src/PhpParser/Printer/BetterStandardPrinter.php index fb1ab715d43..674923fc0e1 100644 --- a/src/PhpParser/Printer/BetterStandardPrinter.php +++ b/src/PhpParser/Printer/BetterStandardPrinter.php @@ -116,8 +116,8 @@ public function printFormatPreserving(array $stmts, array $origStmts, array $ori // strip empty starting/ending php tags if (array_key_exists(0, $stmts) && $stmts[0] instanceof FileWithoutNamespace) { - $content = Strings::replace($content, self::EMPTY_STARTING_TAG_REGEX, ''); - $content = Strings::replace(\rtrim($content), self::EMPTY_ENDING_TAG_REGEX, '', ) ."\n"; + // $content = Strings::replace($content, self::EMPTY_STARTING_TAG_REGEX, ''); + // $content = Strings::replace(\rtrim($content), self::EMPTY_ENDING_TAG_REGEX, '', ) ."\n"; } // add new line in case of added stmts