Updated Rector to commit e29b97e4b5d6dd5a0c5ee442067cb52f7dbb7f25

e29b97e4b5  [Php81] Handle with attribute on ReadOnlyPropertyRector on property promotion (#5692)
This commit is contained in:
Tomas Votruba 2024-03-05 11:28:48 +00:00
parent b05ad66b87
commit ae1f64a7a0
2 changed files with 5 additions and 2 deletions

View File

@ -192,6 +192,9 @@ CODE_SAMPLE
if ($this->isPromotedPropertyAssigned($class, $param)) { if ($this->isPromotedPropertyAssigned($class, $param)) {
return null; return null;
} }
if ($param->attrGroups !== []) {
$param->setAttribute(AttributeKey::ORIGINAL_NODE, null);
}
$this->visibilityManipulator->makeReadonly($param); $this->visibilityManipulator->makeReadonly($param);
return $param; return $param;
} }

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api * @api
* @var string * @var string
*/ */
public const PACKAGE_VERSION = '104f656edd312203d24db4cbe60bd54b78c421f8'; public const PACKAGE_VERSION = 'e29b97e4b5d6dd5a0c5ee442067cb52f7dbb7f25';
/** /**
* @api * @api
* @var string * @var string
*/ */
public const RELEASE_DATE = '2024-03-05 08:15:26'; public const RELEASE_DATE = '2024-03-05 18:26:34';
/** /**
* @var int * @var int
*/ */