symplify / coding-standard

Coding Standard rules for PHP projects with focus on Clean Architecture
MIT License
347 stars 20 forks source link

StandaloneLinePromotedPropertyFixer only applies if there are at least two properties #43

Closed gnutix closed 6 months ago

gnutix commented 6 months ago

Hello there,

I've noticed that StandaloneLinePromotedPropertyFixer only applies if there are at least two properties in the constructor. I'm unsure if it's a conscious choice or a bug.

Should it be fixed ? Should it be an option to configure the behavior ? I'm curious to hear your thoughts.

gnutix

TomasVotruba commented 6 months ago

Hi,

indeed, it should run on one property as well :+1: Could you add the fix?

gnutix commented 6 months ago

@TomasVotruba done