@@ -38,9 +38,17 @@ public function __construct(
3838 $ this ->standard = new Standard ();
3939 }
4040
41- public function printArgTypesAsString (MethodCall $ methodCall , ExtendedMethodReflection $ extendedMethodReflection , Scope $ scope ): string
42- {
43- $ parametersAcceptor = ParametersAcceptorSelector::selectFromArgs ($ scope , $ methodCall ->getArgs (), $ extendedMethodReflection ->getVariants (), $ extendedMethodReflection ->getNamedArgumentsVariants ());
41+ public function printArgTypesAsString (
42+ MethodCall $ methodCall ,
43+ ExtendedMethodReflection $ extendedMethodReflection ,
44+ Scope $ scope
45+ ): string {
46+ $ parametersAcceptor = ParametersAcceptorSelector::selectFromArgs (
47+ $ scope ,
48+ $ methodCall ->getArgs (),
49+ $ extendedMethodReflection ->getVariants (),
50+ $ extendedMethodReflection ->getNamedArgumentsVariants ()
51+ );
4452 $ parameters = $ parametersAcceptor ->getParameters ();
4553
4654 $ stringArgTypes = [];
@@ -126,8 +134,10 @@ private function transformSelfToClassName(Node $node, ?string $className): Node
126134 return new FullyQualified ($ className );
127135 }
128136
129- private function resolveSortedTypes (UnionType |NodeIntersectionType $ paramType , ?string $ className ): UnionType |NodeIntersectionType
130- {
137+ private function resolveSortedTypes (
138+ UnionType |NodeIntersectionType $ paramType ,
139+ ?string $ className
140+ ): UnionType |NodeIntersectionType {
131141 $ typeNames = [];
132142
133143 foreach ($ paramType ->types as $ type ) {
@@ -183,7 +193,8 @@ private function printTypeToString(Type $type): string
183193 }
184194
185195 if (count ($ type ->getEnumCases ()) === 1 ) {
186- return $ type ->getEnumCases ()[0 ]->getClassName ();
196+ return $ type ->getEnumCases ()[0 ]
197+ ->getClassName ();
187198 }
188199
189200 return $ type ->describe (VerbosityLevel::typeOnly ());
0 commit comments