Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77aeeb3 commit 08f6dc3Copy full SHA for 08f6dc3
rules/TypeDeclaration/Rector/ClassMethod/ParamTypeByMethodCallTypeRector.php
@@ -130,6 +130,23 @@ private function shouldSkipClassMethod(ClassMethod $classMethod): bool
130
return true;
131
}
132
133
+ $isMissingParameterTypes = false;
134
+ foreach ($classMethod->params as $param) {
135
+ if ($param->type instanceof Node) {
136
+ continue;
137
+ }
138
+
139
+ if ($param->variadic) {
140
141
142
143
+ $isMissingParameterTypes = true;
144
145
146
+ if ($isMissingParameterTypes === false) {
147
+ return true;
148
149
150
return $this->parentClassMethodTypeOverrideGuard->hasParentClassMethod($classMethod);
151
152
0 commit comments