mirror of https://github.com/rectorphp/rector.git
Updated Rector to commit b052ed9ca971f97105ac93712853ea5b897d4dd3
b052ed9ca9
Handle readonly class with attrs (#5736)
This commit is contained in:
parent
b1eb18f499
commit
d028a05e61
|
@ -101,10 +101,18 @@ CODE_SAMPLE
|
|||
if ($constructClassMethod instanceof ClassMethod) {
|
||||
foreach ($constructClassMethod->getParams() as $param) {
|
||||
$this->visibilityManipulator->removeReadonly($param);
|
||||
if ($param->attrGroups !== []) {
|
||||
// invoke reprint with correct newline
|
||||
$param->setAttribute(AttributeKey::ORIGINAL_NODE, null);
|
||||
}
|
||||
}
|
||||
}
|
||||
foreach ($node->getProperties() as $property) {
|
||||
$this->visibilityManipulator->removeReadonly($property);
|
||||
if ($property->attrGroups !== []) {
|
||||
// invoke reprint with correct newline
|
||||
$property->setAttribute(AttributeKey::ORIGINAL_NODE, null);
|
||||
}
|
||||
}
|
||||
if ($node->attrGroups !== []) {
|
||||
// invoke reprint with correct readonly newline
|
||||
|
|
|
@ -19,12 +19,12 @@ final class VersionResolver
|
|||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = 'b71d0fea8eaf051d6d55aee74c9eece0028e2165';
|
||||
public const PACKAGE_VERSION = 'b052ed9ca971f97105ac93712853ea5b897d4dd3';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2024-03-18 22:06:47';
|
||||
public const RELEASE_DATE = '2024-03-19 08:18:04';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue