Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
Add union types#41424
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Add union types#41424
Conversation
Uh oh!
There was an error while loading.Please reload this page.
kaznovac commentedMay 27, 2021
just minor consistency some union definitions have spaces around the pipe character, but some don't |
ro0NL commentedMay 27, 2021
is there a CS rule? |
wouterj left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Fyi, I've reviewed up to the Console component.
This PR does not only introduce union types, but also someobject,string andbool types. Is that intended?
| * @return array|null Array with important QueryBuilder parts or null if | ||
| * they can't be determined | ||
| * | ||
| * @internal This method is public to be usable as callback. It should not |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Unrelated, but this one, the one above and the one in EntityType below can also be madeprivate in Symfony 5.4 I think. The requiredpublic visibility is from 6 years ago, when$this inside a closure was not yet supported (3172d73).
nicolas-grekasMay 27, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
correct, anyone up for a PR doing so?
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
nicolas-grekas commentedMay 27, 2021
Thank you all and@wouterj especially for the review. This is going to take ages to get right. The more eyes the better :) |
wouterj left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Some more :)
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
fab0860 to141fdecCompareThis PR was merged into the 6.0 branch.Discussion----------[Yaml] add types to all arguments| Q | A| ------------- | ---| Branch? | 6.0| Bug fix? | no| New feature? | no| Deprecations? | no| Tickets | -| License | MIT| Doc PR | -Extracted from#41424Commits-------129411e [Yaml] add types to all arguments
This PR was merged into the 6.0 branch.Discussion----------[Workflow] add types to all arguments| Q | A| ------------- | ---| Branch? | 6.0| Bug fix? | no| New feature? | no| Deprecations? | no| Tickets | -| License | MIT| Doc PR | -Extracted from#41424Commits-------6a94b77 [Workflow] add types to all arguments
This PR was merged into the 6.0 branch.Discussion----------[VarDumper] add types to all arguments| Q | A| ------------- | ---| Branch? | 6.0| Bug fix? | no| New feature? | no| Deprecations? | no| Tickets | -| License | MIT| Doc PR | -Extracted from#41424Commits-------e68b368 [VarDumper] add types to all arguments
This PR was merged into the 6.0 branch.Discussion----------[Config] Add parameter types| Q | A| ------------- | ---| Branch? | 6.0| Bug fix? | no| New feature? | no| Deprecations? | no| Tickets | Part of#41424| License | MIT| Doc PR | N/AThis PR adds parameter types to all methods of the Config component.Commits-------e7e5256 [Config] Add parameter types
This PR was merged into the 6.0 branch.Discussion----------[DependencyInjection] add union types| Q | A| ------------- | ---| Branch? | 6.0| Bug fix? | no| New feature? | no| Deprecations? | no| Tickets | Part of#41424| License | MIT| Doc PR | -Commits-------e017977 [DependencyInjection] add union types
d4dc8b1 tofc6fa3aComparenicolas-grekas commentedJul 6, 2021
Closing as the only remaining changes are for Cache, and there is already#41290. |
Uh oh!
There was an error while loading.Please reload this page.
Created usinghttps://github.com/rectorphp/rector/ and manual editing (a lot of them. ;))
For the record, I'm using this command to inspect a specific component:
grep -l 'function [a-zA-Z_].*(\([$]\|.*, [$]\)' -- $(find src/Symfony/Component/Messenger -type f|grep Tests -v)