diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index 2ab99e04ae27..1561b6a38d52 100644 --- a/src/Application/VersionResolver.php +++ b/src/Application/VersionResolver.php @@ -19,12 +19,12 @@ final class VersionResolver * @api * @var string */ - public const PACKAGE_VERSION = '1dcebfe29713124a43504c9a4bac322fa2f41f59'; + public const PACKAGE_VERSION = 'aa52c4ecedb83773b12c4d3b2906ba36601057ba'; /** * @api * @var string */ - public const RELEASE_DATE = '2023-12-17 00:28:05'; + public const RELEASE_DATE = '2023-12-17 13:05:17'; /** * @var int */ diff --git a/src/Reflection/ClassReflectionAnalyzer.php b/src/Reflection/ClassReflectionAnalyzer.php index 72dc890369d9..a0ef1567d87e 100644 --- a/src/Reflection/ClassReflectionAnalyzer.php +++ b/src/Reflection/ClassReflectionAnalyzer.php @@ -3,29 +3,16 @@ declare (strict_types=1); namespace Rector\Core\Reflection; -use PHPStan\BetterReflection\Reflection\ReflectionClass; use PHPStan\Reflection\ClassReflection; -use Rector\Core\Util\Reflection\PrivatesAccessor; use ReflectionEnum; final class ClassReflectionAnalyzer { - /** - * @readonly - * @var \Rector\Core\Util\Reflection\PrivatesAccessor - */ - private $privatesAccessor; - public function __construct(PrivatesAccessor $privatesAccessor) - { - $this->privatesAccessor = $privatesAccessor; - } public function resolveParentClassName(ClassReflection $classReflection) : ?string { $nativeReflection = $classReflection->getNativeReflection(); if ($nativeReflection instanceof ReflectionEnum) { return null; } - $betterReflectionClass = $this->privatesAccessor->getPrivateProperty($nativeReflection, 'betterReflectionClass'); - /** @var ReflectionClass $betterReflectionClass */ - return $betterReflectionClass->getParentClassName(); + return $nativeReflection->getParentClassName(); } }