Skip to content

Commit 2a022b2

Browse files
committed
Un-extract variable
1 parent cf694fd commit 2a022b2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: tests/PHPStan/Printer/PrinterTest.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -1177,10 +1177,9 @@ public function testPrintFormatPreserving(string $phpDoc, string $expectedResult
11771177
$newPhpDoc = $printer->printFormatPreserving($newNode, $phpDocNode, $tokens);
11781178
$this->assertSame($expectedResult, $newPhpDoc);
11791179

1180-
$newTokens = new TokenIterator($lexer->tokenize($newPhpDoc));
11811180
$this->assertEquals(
11821181
$this->unsetAttributes($newNode),
1183-
$this->unsetAttributes($phpDocParser->parse($newTokens))
1182+
$this->unsetAttributes($phpDocParser->parse(new TokenIterator($lexer->tokenize($newPhpDoc))))
11841183
);
11851184
}
11861185

0 commit comments

Comments
 (0)