Updated Rector to commit eea59bf3b2d52aa7553cfa3d36ea0de69221abe5

eea59bf3b2 Fix "method x was not found in reflection of class" (#5871)
This commit is contained in:
Tomas Votruba 2024-05-13 07:24:53 +00:00
parent 49d837e2a6
commit b5b172a4b9
3 changed files with 7 additions and 4 deletions

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = 'e2a184cb16dfe1964feecbe44f7d7cc6130ac010';
public const PACKAGE_VERSION = 'eea59bf3b2d52aa7553cfa3d36ea0de69221abe5';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-05-12 22:52:35';
public const RELEASE_DATE = '2024-05-13 14:20:35';
/**
* @var int
*/

View File

@ -103,10 +103,10 @@ final class ClassMethodReturnTypeOverrideGuard
{
$methodName = $classMethod->name->toString();
foreach ($childrenClassReflections as $childClassReflection) {
$methodReflection = $childClassReflection->getNativeMethod($methodName);
if (!$methodReflection instanceof PhpMethodReflection) {
if (!$childClassReflection->hasNativeMethod($methodName)) {
continue;
}
$methodReflection = $childClassReflection->getNativeMethod($methodName);
$parametersAcceptor = ParametersAcceptorSelector::combineAcceptors($methodReflection->getVariants());
$childReturnType = $parametersAcceptor->getNativeReturnType();
if (!$returnType->isSuperTypeOf($childReturnType)->yes()) {

View File

@ -49,6 +49,9 @@ final class ClassMethodReturnVendorLockResolver
if (!$nativeClassReflection->hasMethod($methodName)) {
continue;
}
if (!$ancestorClassReflections->hasNativeMethod($methodName)) {
continue;
}
$parentClassMethodReflection = $ancestorClassReflections->getNativeMethod($methodName);
$parametersAcceptor = $parentClassMethodReflection->getVariants()[0];
if (!$parametersAcceptor instanceof FunctionVariantWithPhpDocs) {