mirror of https://github.com/rectorphp/rector.git
Updated Rector to commit 765338ec5a4a725ce9b6788582372f24c09a3f82
765338ec5a
[Php80] Skip var property usage on ClassPropertyAssignToConstructorPromotionRector (#5744)
This commit is contained in:
parent
5ac9de7a83
commit
e94ff85194
|
@ -67,6 +67,9 @@ final class PromotedPropertyCandidateResolver
|
|||
}
|
||||
private function matchPropertyPromotionCandidate(Property $property, ClassMethod $constructClassMethod) : ?PropertyPromotionCandidate
|
||||
{
|
||||
if ($property->flags == 0) {
|
||||
return null;
|
||||
}
|
||||
$onlyProperty = $property->props[0];
|
||||
$propertyName = $this->nodeNameResolver->getName($onlyProperty);
|
||||
$firstParamAsVariable = $this->resolveFirstParamUses($constructClassMethod);
|
||||
|
|
|
@ -19,12 +19,12 @@ final class VersionResolver
|
|||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '685ba8a63e904c776033ba85c13f8903952e73e4';
|
||||
public const PACKAGE_VERSION = '765338ec5a4a725ce9b6788582372f24c09a3f82';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2024-03-19 21:45:46';
|
||||
public const RELEASE_DATE = '2024-03-20 21:08:33';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue