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

Allow missing commas when last element is same line than closer #80

Closed
wants to merge 1 commit into from

Conversation

stronk7
Copy link
Member

@stronk7 stronk7 commented Nov 14, 2023

Comes with some tests to ensure that the case is now covered and we are allowing to miss those commas in the last array element when the array closer is in same line.

Fixes #76

Comes with some tests to ensure that the case is now covered
and we are allowing to miss those commas in the last array
element when the array closer is in same line.

Fixes moodlehq#76
@stronk7
Copy link
Member Author

stronk7 commented Nov 14, 2023

Holding this as draft PR until PHPCSExtra 1.2.0 is released. Then we'll have to change composer.json to point to that new release and this PR will be ready.

@stronk7 stronk7 closed this Nov 24, 2023
@stronk7 stronk7 deleted the fix_coma_closer_same_line branch November 24, 2023 17:32
@stronk7
Copy link
Member Author

stronk7 commented Nov 24, 2023

Oh, have closed this (and removed the branch!) by mistake, reopening and regenerating... grrr.

@stronk7
Copy link
Member Author

stronk7 commented Nov 24, 2023

Grrr, I've ended creating #81, given my inability to reopen this PR. See you there.

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.

NormalizedArrays.Arrays.CommaAfterLast sniff is wrong for Moodle
1 participant