mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-05 10:50:48 +00:00
Updated Rector to commit 914349ca92cb1df4463b46f541c6e249045bd4ca
914349ca92
[CodeQuality] Skip not autoloaded parent class on CompleteDynamicPropertiesRector (#5636)
This commit is contained in:
parent
6c843cb4e4
commit
35b646559b
|
@ -4,6 +4,7 @@ declare (strict_types=1);
|
||||||
namespace Rector\CodeQuality\Rector\Class_;
|
namespace Rector\CodeQuality\Rector\Class_;
|
||||||
|
|
||||||
use PhpParser\Node;
|
use PhpParser\Node;
|
||||||
|
use PhpParser\Node\Name\FullyQualified;
|
||||||
use PhpParser\Node\Stmt\Class_;
|
use PhpParser\Node\Stmt\Class_;
|
||||||
use PHPStan\Reflection\ClassReflection;
|
use PHPStan\Reflection\ClassReflection;
|
||||||
use PHPStan\Reflection\ReflectionProvider;
|
use PHPStan\Reflection\ReflectionProvider;
|
||||||
|
@ -154,7 +155,10 @@ CODE_SAMPLE
|
||||||
if ($classReflection->hasMethod('__set')) {
|
if ($classReflection->hasMethod('__set')) {
|
||||||
return \true;
|
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
|
* @param array<string, Type> $fetchedLocalPropertyNameToTypes
|
||||||
|
|
|
@ -19,12 +19,12 @@ final class VersionResolver
|
||||||
* @api
|
* @api
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public const PACKAGE_VERSION = '287deb27d125f599680faab4fec715dad4e61feb';
|
public const PACKAGE_VERSION = '914349ca92cb1df4463b46f541c6e249045bd4ca';
|
||||||
/**
|
/**
|
||||||
* @api
|
* @api
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public const RELEASE_DATE = '2024-02-18 22:43:42';
|
public const RELEASE_DATE = '2024-02-19 01:30:31';
|
||||||
/**
|
/**
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user