mirror of https://github.com/rectorphp/rector.git
Updated Rector to commit bd37496639378be3e1b72dec430ef906f0a6e94d
bd37496639
[DeadCode] Skip with magic __get() on RemoveUnusedPromotedPropertyRector (#5573)
This commit is contained in:
parent
914c0a8e27
commit
ed0dadf714
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue