* [misc] adjust downgrade script to filter params type.

This commit is contained in:
caoyanyi
2024-08-02 10:16:11 +08:00
committed by 李阳
parent 2a11fbe4b4
commit 02fe145aee
+2 -2
View File
@@ -140,7 +140,7 @@ CODE_SAMPLE
return \false;
}
if ($classMethod->isMagic()) {
return \true;
return \false;
}
if ($this->sealedClassAnalyzer->isSealedClass($classReflection)) {
return \true;
@@ -151,7 +151,7 @@ CODE_SAMPLE
if ($this->hasParamAlreadyNonTyped($classMethod)) {
return \true;
}
return $this->isSafeType($classReflection, $classMethod);
return \false;
}
private function processRemoveParamTypeFromMethod(ClassReflection $classReflection, ClassMethod $classMethod) : ?ClassMethod
{