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 shorthand array syntax #22

Merged
merged 1 commit into from
Nov 25, 2019
Merged

Allow shorthand array syntax #22

merged 1 commit into from
Nov 25, 2019

Conversation

barryceelen
Copy link
Contributor

WPCS requires arrays to be declared using long array syntax in WordPress Core:

WordPress/WordPress-Coding-Standards#1770
https://make.wordpress.org/core/2019/07/12/php-coding-standards-changes/

This update allows shorthand syntax in projects using the 10up PHPCS Configuration.

@tlovett1
Copy link
Member

I use shorthand syntax and have never seen an error/warning. Maybe I'm missing something. I'll merge anyway.

@tlovett1 tlovett1 merged commit 08dedd6 into 10up:master Nov 25, 2019
@barryceelen
Copy link
Contributor Author

Thanks @tlovett1! That shorthand update has only been added two weeks ago (changelog)

@barryceelen barryceelen deleted the patch-1 branch November 25, 2019 14:52
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.

None yet

2 participants