mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-05 02:40:50 +00:00
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:
parent
dc2205094c
commit
bc02e10427
|
@ -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)) {
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue
Block a user