Skip to content

Add a section on trailing commas #18

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
Jul 17, 2022

Conversation

Crell
Copy link
Collaborator

@Crell Crell commented Jun 1, 2022

This is consistent with what I have most often seen in the wild. It also makes for the easiest diffs.

@Crell Crell mentioned this pull request Jun 1, 2022
25 tasks
Copy link
Contributor

@TimWolla TimWolla left a comment

Choose a reason for hiding this comment

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

The multi-line examples in sections "4.5 Method and Function Arguments" and "7. Closures" should likely also be updated to add the trailing comma.

@Crell
Copy link
Collaborator Author

Crell commented Jun 14, 2022

Yes, once we're comfortable with this change policy-wise I will update the PR to cover the rest of the document. I'm holding off on that until approval to minimize diff conflicts.

@KorvinSzanto We need an internal decision/acceptance process. :-)

@KorvinSzanto KorvinSzanto merged commit 843d379 into php-fig:master Jul 17, 2022
@Crell Crell deleted the trailing-comma branch July 18, 2022 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants