Updated Rector to commit 914349ca92cb1df4463b46f541c6e249045bd4ca

914349ca92 [CodeQuality] Skip not autoloaded parent class on CompleteDynamicPropertiesRector (#5636)
This commit is contained in:
Tomas Votruba 2024-02-18 18:32:48 +00:00
parent 6c843cb4e4
commit 35b646559b
2 changed files with 7 additions and 3 deletions

View File

@ -4,6 +4,7 @@ declare (strict_types=1);
namespace Rector\CodeQuality\Rector\Class_;
use PhpParser\Node;
use PhpParser\Node\Name\FullyQualified;
use PhpParser\Node\Stmt\Class_;
use PHPStan\Reflection\ClassReflection;
use PHPStan\Reflection\ReflectionProvider;
@ -154,7 +155,10 @@ CODE_SAMPLE
if ($classReflection->hasMethod('__set')) {
return \true;
}
return $classReflection->hasMethod('__get');
if ($classReflection->hasMethod('__get')) {
return \true;
}
return $class->extends instanceof FullyQualified && !$this->reflectionProvider->hasClass($class->extends->toString());
}
/**
* @param array<string, Type> $fetchedLocalPropertyNameToTypes

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '287deb27d125f599680faab4fec715dad4e61feb';
public const PACKAGE_VERSION = '914349ca92cb1df4463b46f541c6e249045bd4ca';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-02-18 22:43:42';
public const RELEASE_DATE = '2024-02-19 01:30:31';
/**
* @var int
*/