Skip to content

Commit 5475a73

Browse files
committed
[ci-review] Rector Rectify
1 parent ff32eb1 commit 5475a73

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

tests/PhpParser/Printer/PHPStanPrinterTest.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace Rector\Tests\PhpParser\Printer;
66

7+
use ReflectionProperty;
78
use PhpParser\PrettyPrinter\Standard;
89
use PHPStan\Parser\Parser;
910
use PHPStan\Parser\RichParser;
@@ -23,14 +24,14 @@ 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-
$printerContents = $standardPrinter->printFormatPreserving($stmts, $stmts, $tokens);
33+
$standard = new Standard();
34+
$printerContents = $standard->printFormatPreserving($stmts, $stmts, $tokens);
3435

3536
$newlineNormalizedContents = str_replace("\n", PHP_EOL, $printerContents);
3637

0 commit comments

Comments
 (0)