Updated Rector to commit b925e54b913863053e57e628ea95b2fd612e128e

b925e54b91 [Performance][Php81] Early property promotion and readonly param check before changeable check on ReadOnlyPropertyRector (#5791)
This commit is contained in:
Tomas Votruba 2024-04-03 04:19:15 +00:00
parent dc2205094c
commit bc02e10427
2 changed files with 5 additions and 5 deletions

View File

@ -180,11 +180,11 @@ CODE_SAMPLE
if ($param->type === null) {
return null;
}
// promoted property?
if ($this->propertyManipulator->isPropertyChangeableExceptConstructor($class, $param, $scope)) {
// early check not property promotion and already readonly
if ($param->flags === 0 || $this->visibilityManipulator->isReadonly($param)) {
return null;
}
if ($this->visibilityManipulator->isReadonly($param)) {
if ($this->propertyManipulator->isPropertyChangeableExceptConstructor($class, $param, $scope)) {
return null;
}
if ($this->paramAnalyzer->isParamReassign($classMethod, $param)) {

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '724899c28307e4cb1f8a7366ebb76756430da754';
public const PACKAGE_VERSION = 'b925e54b913863053e57e628ea95b2fd612e128e';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-04-02 00:52:39';
public const RELEASE_DATE = '2024-04-03 11:17:08';
/**
* @var int
*/