File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
rules/CodeQuality/Reflection Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -90,28 +90,28 @@ public function resolveCallParameterTypes(MethodCall|StaticCall $call): ?array
9090 }
9191
9292 /**
93- * @return null|Type []
93+ * @return string []
9494 */
9595 public function resolveCallParameterNames (MethodCall |StaticCall $ call ): ?array
9696 {
9797 if (! $ call ->name instanceof Identifier) {
98- return null ;
98+ return [] ;
9999 }
100100
101101 $ methodName = $ call ->name ->toString ();
102102
103103 $ callerType = $ this ->nodeTypeResolver ->getType ($ call instanceof MethodCall ? $ call ->var : $ call ->class );
104104 if (! $ callerType instanceof ObjectType) {
105- return null ;
105+ return [] ;
106106 }
107107
108108 $ classReflection = $ callerType ->getClassReflection ();
109109 if (! $ classReflection instanceof ClassReflection) {
110- return null ;
110+ return [] ;
111111 }
112112
113113 if (! $ classReflection ->hasNativeMethod ($ methodName )) {
114- return null ;
114+ return [] ;
115115 }
116116
117117 $ extendedMethodReflection = $ classReflection ->getNativeMethod ($ methodName );
You can’t perform that action at this time.
0 commit comments