Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
tugmaks opened this issue Mar 4, 2024 · 0 comments · Fixed by rectorphp/rector-src#5692
Labels

Comments

@tugmaks
Copy link
Contributor

tugmaks commented Mar 4, 2024

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
     ){}
 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant