-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
TypesSpacesFixer - Introduction #5734
Conversation
tests/Fixtures/Integration/priority/binary_operator_spaces,union_types_spaces.test
Outdated
Show resolved
Hide resolved
About the name, should we anticipate for intersection types? |
@nicolas-grekas Good point! I think we can be fairly sure intersection types will land in PHP at some point. |
Wouldn't |
|
Let's go with |
I just ran this PR on branch 6.0 of symfony/symfony, all went well! |
Hum, on second try, it looks like this doesn't fix past the first argument. - public function trans(string|\Stringable|TranslatableInterface|null $message, array|string $arguments = [], string $domain = null, string $locale = null, int $count = null): string
+ public function trans(string|\Stringable|TranslatableInterface|null $message, array | string $arguments = [], string $domain = null, string $locale = null, int $count = null): string |
@nicolas-grekas I've found the reason: #5799 - can you review that, please? |
looks very nice :)
|
#5799 is now merged ;) |
@SpacePossum all done |
Thank you @kubawerlos. |
Thank you, @kubawerlos and @keradus. |
[ 'types_spaces' => ['space' => 'single']] not worked for me |
@sidigi can you report a new issue as to properly track it? please fill out the issue template when doing so, thanks! |
The new rule types_spaces was introduced with PHP-CS-Fixer/PHP-CS-Fixer#5734, defaults to none (no spaces between union types).
closes #5495