File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 1515namespace Humbug \PhpScoper \PhpParser \Printer ;
1616
1717use PhpParser \Node ;
18+ use PhpParser \Token ;
1819
1920interface Printer
2021{
2122 /**
22- * @param Node[] $newStmts
23- * @param Node[] $oldStmts
24- * @param array<mixed> $oldTokens
23+ * @param Node[] $newStmts
24+ * @param Node[] $oldStmts
25+ * @param Token[] $oldTokens
2526 */
2627 public function print (array $ newStmts , array $ oldStmts , array $ oldTokens ): string ;
2728}
Original file line number Diff line number Diff line change 1414
1515namespace Humbug \PhpScoper \PhpParser \Printer ;
1616
17- use PhpParser \PrettyPrinterAbstract ;
17+ use PhpParser \PrettyPrinter ;
1818
1919final readonly class StandardPrinter implements Printer
2020{
21- public function __construct (private PrettyPrinterAbstract $ decoratedPrinter )
21+ public function __construct (private PrettyPrinter $ decoratedPrinter )
2222 {
2323 }
2424
2525 public function print (array $ newStmts , array $ oldStmts , array $ oldTokens ): string
2626 {
27- return $ this ->decoratedPrinter ->prettyPrintFile ($ newStmts )."\n" ;
27+ $ printedStatements = $ this ->decoratedPrinter ->prettyPrintFile ($ newStmts );
28+
29+ return $ printedStatements ."\n" ;
2830 }
2931}
You can’t perform that action at this time.
0 commit comments