Skip to content

Code style change in @PER-CS2.0 affecting @Symfony (parentheses for anonymous classes) #57901

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

Merged
merged 1 commit into from
Aug 6, 2024
Merged

Code style change in @PER-CS2.0 affecting @Symfony (parentheses for anonymous classes) #57901

merged 1 commit into from
Aug 6, 2024

Conversation

bonroyage
Copy link
Contributor

Q A
Branch? 7.2
Bug fix? no
New feature? no
Deprecations? no
Issues -
License MIT

I have created a PR (PHP-CS-Fixer/PHP-CS-Fixer#8140) in the PHP-CS-Fixer repo to bring the @PER-CS2.0 ruleset in line with the specifications on the new_with_parentheses rule for anonymous classes. Since the @Symfony ruleset builds upon the @PER-CS2.0 ruleset, they would like confirmation that the Symfony community is OK with this change affecting the Symfony ruleset as well. Should it not be, I'll push another commit there ensuring that the change does not affect @Symfony.

Therefore, this PR is not meant to be merged, but function as an RFC to get your opinion and show the effect it would have when applied to the Symfony source.

@carsonbot carsonbot added Status: Needs Review RFC RFC = Request For Comments (proposals about features that you want to be discussed) labels Aug 1, 2024
@carsonbot carsonbot added this to the 7.2 milestone Aug 1, 2024
@carsonbot carsonbot changed the title [RFC] Code style change in @PER-CS2.0 affecting @Symfony (parentheses for anonymous classes) Code style change in @PER-CS2.0 affecting @Symfony (parentheses for anonymous classes) Aug 1, 2024
@wouterj
Copy link
Member

wouterj commented Aug 1, 2024

Would be fine by me 👍

Copy link
Member

@derrabus derrabus left a comment

Choose a reason for hiding this comment

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

Can you please adjust our .php-cs-fixer.dist.php to the new settings and fix the double space issues I've pointed out?

@stof
Copy link
Member

stof commented Aug 6, 2024

👍 from me as well

@derrabus
Copy link
Member

derrabus commented Aug 6, 2024

Thank you @bonroyage.

@derrabus derrabus merged commit 376e594 into symfony:7.2 Aug 6, 2024
8 of 10 checks passed
@bonroyage bonroyage deleted the rfc/new_with_parentheses branch August 6, 2024 10:38
fabpot added a commit that referenced this pull request Aug 12, 2024
This PR was merged into the 7.2 branch.

Discussion
----------

DX: simplify PHP CS Fixer config towards v3.62

| Q             | A
| ------------- | ---
| Branch?       | 7.2
| Bug fix?      | no
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Issues        | no
| License       | MIT

following #57901

Commits
-------

004818d DX: simplify PHP CS Fixer config towards v3.62
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFC RFC = Request For Comments (proposals about features that you want to be discussed) Status: Reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants