Skip to content

Fix CS as per trailing comma rules. #18047

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
Nov 30, 2024
Merged

Fix CS as per trailing comma rules. #18047

merged 1 commit into from
Nov 30, 2024

Conversation

dereuromark
Copy link
Member

@dereuromark dereuromark commented Nov 30, 2024

This would make CI green for
cakephp/cakephp-codesniffer#369
update

and allows less merge conflicts in the future, and to be in sync with
https://www.php-fig.org/per/coding-style/#26-trailing-commas

I checked and these changes and additional rules are additive.
That means the old standard would not complain about it, all stays green.
And so we can apply them to 5.x and merge upstream.
We can also apply them to 5.next directly, but then we lose some of the usefulness of less merge conflicts in the future.
The current conflicts are about ~13 files, so managable.

@dereuromark dereuromark added this to the 5.1.3 milestone Nov 30, 2024
@dereuromark
Copy link
Member Author

I would recommend merging asap, as there will be conflicts piling up also on new PRs opened.
And I can merge it forward into 5.next etc.

@dereuromark dereuromark merged commit 6a0a694 into 5.x Nov 30, 2024
12 of 13 checks passed
@dereuromark dereuromark deleted the fix-cs-php81 branch November 30, 2024 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy