Skip to content

Commit b020658

Browse files
committed
Rectify
1 parent 5492785 commit b020658

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

rules/CodeQuality/Reflection/MethodParametersAndReturnTypesResolver.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)