Skip to content

Commit

Permalink
Code style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MidnightDesign committed Feb 15, 2024
1 parent 0eb1383 commit eccd31e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Printer/Printer.php
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ private function printTagValue(PhpDocTagValueNode $node): string
if (count($node->typeArguments) > 0) {
$printedArgs = [];
foreach ($node->typeArguments as $name => $bound) {
$printedArgs[] = $name . ($bound === null ? '' : (' of ' . $this->printType($bound)));
$printedArgs[] = $name . ($bound === null ? '' : ' of ' . $this->printType($bound));
}
$args = '<' . implode(', ', $printedArgs) . '>';
}
Expand Down
4 changes: 2 additions & 2 deletions tests/PHPStan/Parser/PhpDocParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4488,7 +4488,7 @@ public function provideTypeAliasTagsData(): Iterator
false,
'',
false
)
),
],
new IdentifierTypeNode('T')
),
Expand All @@ -4515,7 +4515,7 @@ public function provideTypeAliasTagsData(): Iterator
false,
'',
false
)
),
],
new IdentifierTypeNode('T')
),
Expand Down
4 changes: 2 additions & 2 deletions tests/PHPStan/Printer/PrinterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1828,7 +1828,7 @@ public function dataPrintPhpDocNode(): iterable
false,
'',
false
)
),
],
new IdentifierTypeNode('T')
),
Expand Down Expand Up @@ -1858,7 +1858,7 @@ public function dataPrintPhpDocNode(): iterable
false,
'',
false
)
),
],
new IdentifierTypeNode('T')
),
Expand Down

0 comments on commit eccd31e

Please sign in to comment.