File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 44
55namespace Rector \Tests \PhpParser \Printer ;
66
7+ use ReflectionProperty ;
78use PhpParser \PrettyPrinter \Standard ;
89use PHPStan \Parser \Parser ;
910use PHPStan \Parser \RichParser ;
@@ -23,16 +24,16 @@ public function testAddingCommentOnSomeNodesFail(): void
2324 $ stmts = $ phpstanParser ->parseFile (__DIR__ . '/Fixture/some_array_map.php ' );
2425
2526 // get private property "parser"
26- $ parserReflectionProperty = new \ ReflectionProperty (RichParser::class, 'parser ' );
27+ $ parserReflectionProperty = new ReflectionProperty (RichParser::class, 'parser ' );
2728
2829 /** @var \PhpParser\Parser $innerParser */
2930 $ innerParser = $ parserReflectionProperty ->getValue ($ phpstanParser );
3031 $ tokens = $ innerParser ->getTokens ();
3132
32- $ standardPrinter = new Standard ([
33+ $ standard = new Standard ([
3334 'newline ' => "\n" ,
3435 ]);
35- $ printerContents = $ standardPrinter ->printFormatPreserving ($ stmts , $ stmts , $ tokens );
36+ $ printerContents = $ standard ->printFormatPreserving ($ stmts , $ stmts , $ tokens );
3637
3738 $ this ->assertStringEqualsFile (__DIR__ . '/Fixture/some_array_map.php ' , $ printerContents );
3839 }
You can’t perform that action at this time.
0 commit comments