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

Enhancement: Enable trailing_comma_in_multiline fixer #647

Merged
merged 2 commits into from
Dec 6, 2023

Conversation

localheinz
Copy link
Contributor

@localheinz localheinz commented Jul 12, 2022

This pull request

  • enables the trailing_comma_in_multiline fixer
  • runs make coding-standards

Follows #559.

💁‍♂️ For reference, see https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/v3.40.2/doc/rules/control_structure/trailing_comma_in_multiline.rst.

@localheinz localheinz force-pushed the feature/trailing-comma-in-multiline branch 2 times, most recently from 5d74c84 to 81ae171 Compare July 12, 2022 11:36
cal.php Outdated Show resolved Hide resolved
@localheinz localheinz force-pushed the feature/trailing-comma-in-multiline branch from afbb9df to 8d02eae Compare August 22, 2022 17:20
@derickr
Copy link
Member

derickr commented Nov 29, 2023

This has many conflicts.

@localheinz
Copy link
Contributor Author

Rebased!

git-php.php Outdated Show resolved Hide resolved
Copy link
Member

@Girgias Girgias left a comment

Choose a reason for hiding this comment

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

Mostly LGTM, just a couple of questions

@localheinz localheinz force-pushed the feature/trailing-comma-in-multiline branch from c48e3f1 to 76baa32 Compare December 6, 2023 13:52
@Girgias
Copy link
Member

Girgias commented Dec 6, 2023

Needs a rebase again

@localheinz localheinz force-pushed the feature/trailing-comma-in-multiline branch from c29855a to f07cfcb Compare December 6, 2023 20:31
@localheinz
Copy link
Contributor Author

Rebased, @Girgias!

'trailing_comma_in_multiline' => [
'elements' => [
'arguments',
'arrays',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since we use PHP 8.2 now, we could also add

  • match
  • parameters

to the elements option.

See https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/v3.40.2/doc/rules/control_structure/trailing_comma_in_multiline.rst#elements.

Copy link
Member

Choose a reason for hiding this comment

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

I think this probably makes sense as a follow-up PR to not clog this up any longer

@Girgias Girgias merged commit c093fb5 into php:master Dec 6, 2023
2 checks passed
@localheinz localheinz deleted the feature/trailing-comma-in-multiline branch December 7, 2023 07:52
@localheinz
Copy link
Contributor Author

Thank you, @cmb69, @derickr, @Girgias, and @saundefined!

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.

5 participants