File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ class NativeTypePrinter extends PrettyPrinter
104104 public function __construct (
105105 array $ aliases = [],
106106 string $ newLine = self ::DEFAULT_NEW_LINE_DELIMITER ,
107- string $ indention = self ::DEFAULT_INDENTION
107+ string $ indention = self ::DEFAULT_INDENTION ,
108108 ) {
109109 parent ::__construct ($ newLine , $ indention );
110110
@@ -210,7 +210,7 @@ protected function printUnionTypeNode(UnionTypeNode $node): string
210210 try {
211211 /** @var non-empty-string */
212212 return \vsprintf ($ this ->nesting > 0 ? '(%s) ' : '%s ' , [
213- \implode ('| ' , [...$ this ->unwrapAndPrint ($ node )])
213+ \implode ('| ' , [...$ this ->unwrapAndPrint ($ node )]),
214214 ]);
215215 } finally {
216216 ++$ this ->nesting ;
@@ -223,7 +223,7 @@ protected function printIntersectionTypeNode(IntersectionTypeNode $node): string
223223 try {
224224 /** @var non-empty-string */
225225 return \vsprintf ($ this ->nesting > 0 ? '(%s) ' : '%s ' , [
226- \implode ('& ' , [...$ this ->unwrapAndPrint ($ node )])
226+ \implode ('& ' , [...$ this ->unwrapAndPrint ($ node )]),
227227 ]);
228228 } finally {
229229 ++$ this ->nesting ;
You can’t perform that action at this time.
0 commit comments