Skip to content

Enhancement: Enable array_syntax fixer #659

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 2 commits into from
Aug 22, 2022

Conversation

localheinz
Copy link
Contributor

@localheinz localheinz commented Jul 15, 2022

This pull request

  • enables the array_syntax fixer
  • runs make coding-standards

Replaces #532.
Follows #559.

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

@localheinz localheinz changed the title Enhancement: Enable array_syntax fixer Enhancement: Enable array_syntax fixer Jul 15, 2022
@localheinz localheinz force-pushed the feature/array-syntax branch from 09a599a to 56a91e4 Compare July 15, 2022 10:13
@localheinz localheinz marked this pull request as ready for review July 15, 2022 10:14
@localheinz localheinz mentioned this pull request Jul 15, 2022
@localheinz localheinz force-pushed the feature/array-syntax branch from a93c965 to f616e01 Compare July 15, 2022 10:15
Copy link
Member

@cmb69 cmb69 left a comment

Choose a reason for hiding this comment

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

Thank you! Fine for me, but maybe others prefer the classic array() syntax (at least in some cases).

@localheinz
Copy link
Contributor Author

@cmb69

We could also configure the fixer to use long syntax.

@cmb69
Copy link
Member

cmb69 commented Jul 15, 2022

Well, I prefer the short syntax (nowadays for all cases). I just don't want to go ahead and merge, to give others time to object.

@kamil-tekiela
Copy link
Member

Please use short syntax only. The long array syntax is less readable most of the time.

@localheinz localheinz force-pushed the feature/array-syntax branch 3 times, most recently from a8cb04c to 0c8f37d Compare July 15, 2022 13:21
@localheinz localheinz force-pushed the feature/array-syntax branch from f2e1b35 to 1cc889a Compare August 21, 2022 21:15
localheinz and others added 2 commits August 22, 2022 18:57
Co-authored-by: Andreas Möller <[email protected]>
Co-authored-by: MathiasReker <[email protected]>
Co-authored-by: Andreas Möller <[email protected]>
Co-authored-by: MathiasReker <[email protected]>
@cmb69 cmb69 force-pushed the feature/array-syntax branch from 1d5e0c4 to 35c52fd Compare August 22, 2022 16:58
@cmb69 cmb69 merged commit d9bcfed into php:master Aug 22, 2022
@cmb69
Copy link
Member

cmb69 commented Aug 22, 2022

Thank you!

@localheinz localheinz deleted the feature/array-syntax branch August 22, 2022 16:59
@localheinz
Copy link
Contributor Author

Thank you, @cmb69 and @kamil-tekiela!

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.

3 participants