Skip to content

ReadOnlyPropertyRector: removes codestyle between existing attribute and promoted property #8526

@tugmaks

Description

@tugmaks

Bug Report

Hello, i'm not sure if it is bug or by design
https://getrector.com/demo/3e495c9d-6c21-41f5-ae1d-54a50120fc35

Expected Behaviour

It should not change current codestyle

 final class DemoFile
 {
 	private function __construct(
        #[MyAttr]
        private readonly string $id
     ){}
 }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions