-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Use short array syntax #29623
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
Use short array syntax #29623
Conversation
7869878
to
13738f2
Compare
13738f2
to
32efbc4
Compare
I will rebase it after approval, before merge, since it's prone to conflicts when you merge some branches meanwhile. |
If this is accepted, the https://symfony.com/doc/current/contributing/code/standards.html page must reflect our new policy. |
Sure, but not immediately. Similar work in upper branches need to be done before rule can be replaced, which I volunteer to do as well. This PR is first step. |
@ostrolucky recently I discovered this https://github.com/symfony/phpunit-bridge/blob/master/composer.json#L19 |
yeah that's a good point. We can exclude this for phpunit bridge |
Although travis is not checking versions below if it is not by design... then maybe if this could be |
PHP 5.3 support was required to test Symfony 2.8. |
…mponos) This PR was squashed before being merged into the 4.3-dev branch (closes #29718). Discussion ---------- [PHPUnit bridge] Bump php version of PHPUnit-bridge | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no (?) | Deprecations? | no | Tests pass? | yes | License | MIT Related to #29623 (comment) I checked the BC page I think I couldn't find any related to BC changes... anyway... As far as I understood from the comment above I must target `master` branch. Commits ------- 5931309 [PHPUnit bridge] Bump php version of PHPUnit-bridge
I'm 👍 for the change, but this will make almost all pending PRs conflict (see how many its already has).
To save us some hassle, I'd wait for 4.1 to be EOLed personally before doing so. Meanwhile, what about enabling the short array syntax in fabbot right now, to help rebased/new PRs be ready? @fabpot wdyt? |
You can do it that way for all php-cs-fixer rules, or at least those affecting single line only. I thought it's not being done that way for some reason? But yeah otherwise I'm 👍 for that But, it's not so simple, as you need to take special care for things like fixtures of dumped containers.
Yes, I though this will be merged quicker. You can't let PR like this sit around for 20 days. It was 0 conflicts in beginning all the way up to master. Rebasing this now would be difficult. |
Superseded by #29903 |
Symfony is one of last projects using traditional array syntax. After dropping support for 2.8, this is best opportunity to switch to short syntax usage. If we do it later, there would be even more places where it will be needed to change and even more conflicts.
This patch is not just running php-cs-fixer. This is a subset of hunk changes which are conflict free!
Great care was taken to: