Updated Rector to commit bd37496639378be3e1b72dec430ef906f0a6e94d

bd37496639 [DeadCode] Skip with magic __get() on RemoveUnusedPromotedPropertyRector (#5573)
This commit is contained in:
Tomas Votruba 2024-02-07 12:31:25 +00:00
parent 914c0a8e27
commit ed0dadf714
2 changed files with 6 additions and 2 deletions

View File

@ -142,6 +142,10 @@ CODE_SAMPLE
if ($class->attrGroups !== []) {
return \true;
}
$magicGetMethod = $class->getMethod(MethodName::__GET);
if ($magicGetMethod instanceof ClassMethod) {
return \true;
}
foreach ($class->stmts as $stmt) {
if ($stmt instanceof TraitUse) {
return \true;

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = 'af4d3db31bacab922d47b2551cec66644e3568b7';
public const PACKAGE_VERSION = 'bd37496639378be3e1b72dec430ef906f0a6e94d';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-02-07 17:31:57';
public const RELEASE_DATE = '2024-02-07 19:29:08';
/**
* @var int
*/