Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Components] Convert to native return types#50852
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
Uh oh!
There was an error while loading.Please reload this page.
Conversation
nicolas-grekas commentedJul 3, 2023
rebase unlocked + some fixes needed I guess |
e3220b5 to824f48aCompare…ribedEvents()` (nicolas-grekas)This PR was merged into the 6.4 branch.Discussion----------[Security] Add native return type to `Firewall::getSubscribedEvents()`| Q | A| ------------- | ---| Branch? | 6.4| Bug fix? | no| New feature? | no| Deprecations? | no| Tickets | -| License | MIT| Doc PR | -Required to make#50852 green without breaking compat between v6 and v7.Commits-------8069f49 [Security] Add native return type to `Firewall::getSubscribedEvents()`
824f48a toa250774Compare
nicolas-grekas 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.
I finished the PR.
I order to help third party bundles to be compatible with Symfony 7, I didn't add thevoid return type to the following interfaces (all listed in.github/expected-missing-return-types.diff):
- src/Symfony/Component/DependencyInjection/Compiler/CompilerPassInterface.php
- src/Symfony/Component/DependencyInjection/Extension/PrependExtensionInterface.php
- src/Symfony/Component/HttpKernel/Bundle/BundleInterface.php
Please open an issue or send a PR if you think we should add more interfaces to this list.
Note that src/Symfony/Contracts/Service/ResetInterface.php also doesn't have a native type, and that's on purpose, to keep compatibility with implementations that do have a return value.
I also patched DebugClassLoader so that it doesn't skipvoid return types.
nicolas-grekas commentedJul 5, 2023
Thank you@wouterj. |
Uh oh!
There was an error while loading.Please reload this page.