Updated Rector to commit 765338ec5a4a725ce9b6788582372f24c09a3f82

765338ec5a [Php80] Skip var property usage on ClassPropertyAssignToConstructorPromotionRector (#5744)
This commit is contained in:
Tomas Votruba 2024-03-20 14:11:05 +00:00
parent 5ac9de7a83
commit e94ff85194
2 changed files with 5 additions and 2 deletions

View File

@ -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);

View File

@ -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
*/ */