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

ClassAttributesSeparationFixer - Add trait_import support #5827

Merged
merged 1 commit into from
Aug 2, 2021
Merged

ClassAttributesSeparationFixer - Add trait_import support #5827

merged 1 commit into from
Aug 2, 2021

Conversation

SpacePossum
Copy link
Contributor

closes #5490

@SpacePossum SpacePossum added this to the 2.19.1 milestone Jul 30, 2021
@coveralls
Copy link

coveralls commented Jul 30, 2021

Coverage Status

Coverage increased (+0.0004%) to 91.564% when pulling 51f8116 on SpacePossum:2_19_class_attribute_trait_import_support into 0552e59 on FriendsOfPHP:2.19.

@SpacePossum SpacePossum added the RTM Ready To Merge label Jul 30, 2021
@keradus keradus removed the RTM Ready To Merge label Aug 2, 2021
@keradus
Copy link
Member

keradus commented Aug 2, 2021

Thank you @SpacePossum.

@keradus keradus merged commit 4eb5227 into PHP-CS-Fixer:2.19 Aug 2, 2021
@keradus keradus deleted the 2_19_class_attribute_trait_import_support branch August 2, 2021 07:29
@@ -239,6 +240,7 @@ protected function createConfigurationDefinition()
'const' => self::SPACING_ONE,
'method' => self::SPACING_ONE,
'property' => self::SPACING_ONE,
'trait_import' => self::SPACING_ONE,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@keradus @SpacePossum isn't this BC break? Now, after update to 3.0.1 everyone get the trait imports changed?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see that the initial decision was it's bugfix and going to 2.19.x

and yeah, each bugfix will change things for folks, thus can be considered BC breaker

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was it really a bugfix? I'ts not a problem to you or me as we know exactly what is going on in repo.

I'm thinking about people not familiar that well with the repo and seeing 3.0.1 patch version and wants the bugfixes.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it was intended for the rule to function this way but was never made to do so. If PHP adds another type of class element definition in the future it will be added to the list as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants