mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-12 22:22:24 +00:00
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
|
private function matchPropertyPromotionCandidate(Property $property, ClassMethod $constructClassMethod) : ?PropertyPromotionCandidate
|
||||||
{
|
{
|
||||||
|
if ($property->flags == 0) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
$onlyProperty = $property->props[0];
|
$onlyProperty = $property->props[0];
|
||||||
$propertyName = $this->nodeNameResolver->getName($onlyProperty);
|
$propertyName = $this->nodeNameResolver->getName($onlyProperty);
|
||||||
$firstParamAsVariable = $this->resolveFirstParamUses($constructClassMethod);
|
$firstParamAsVariable = $this->resolveFirstParamUses($constructClassMethod);
|
||||||
|
|
|
@ -19,12 +19,12 @@ final class VersionResolver
|
||||||
* @api
|
* @api
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public const PACKAGE_VERSION = '685ba8a63e904c776033ba85c13f8903952e73e4';
|
public const PACKAGE_VERSION = '765338ec5a4a725ce9b6788582372f24c09a3f82';
|
||||||
/**
|
/**
|
||||||
* @api
|
* @api
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public const RELEASE_DATE = '2024-03-19 21:45:46';
|
public const RELEASE_DATE = '2024-03-20 21:08:33';
|
||||||
/**
|
/**
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user