diff --git a/rules/Transform/Rector/ConstFetch/ConstFetchToClassConstFetchRector.php b/rules/Transform/Rector/ConstFetch/ConstFetchToClassConstFetchRector.php index 5525d0bd598..127f16f43d7 100644 --- a/rules/Transform/Rector/ConstFetch/ConstFetchToClassConstFetchRector.php +++ b/rules/Transform/Rector/ConstFetch/ConstFetchToClassConstFetchRector.php @@ -1,7 +1,10 @@ constFetchToClassConsts as $constFetchToClassConst) { if (!$this->isName($node, $constFetchToClassConst->getOldConstName())) { diff --git a/rules/Transform/ValueObject/ConstFetchToClassConstFetch.php b/rules/Transform/ValueObject/ConstFetchToClassConstFetch.php index ba4d10dfe24..bd42f267b99 100644 --- a/rules/Transform/ValueObject/ConstFetchToClassConstFetch.php +++ b/rules/Transform/ValueObject/ConstFetchToClassConstFetch.php @@ -7,14 +7,17 @@ use Rector\Validation\RectorAssert; final class ConstFetchToClassConstFetch { /** + * @readonly * @var string */ private $oldConstName; /** + * @readonly * @var string */ private $newClassName; /** + * @readonly * @var string */ private $newConstName; @@ -23,9 +26,9 @@ final class ConstFetchToClassConstFetch $this->oldConstName = $oldConstName; $this->newClassName = $newClassName; $this->newConstName = $newConstName; - RectorAssert::constantName($oldConstName); - RectorAssert::className($newClassName); - RectorAssert::constantName($newConstName); + RectorAssert::constantName($this->oldConstName); + RectorAssert::className($this->newClassName); + RectorAssert::constantName($this->newConstName); } public function getOldConstName() : string { diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index 5976813fe83..7be2408fd06 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 = 'a8d0dbeb7191d57af0ac9068adf644730f728c83'; + public const PACKAGE_VERSION = '287deb27d125f599680faab4fec715dad4e61feb'; /** * @api * @var string */ - public const RELEASE_DATE = '2024-02-18 10:09:06'; + public const RELEASE_DATE = '2024-02-18 22:43:42'; /** * @var int */