-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
edited by nicolas-grekas
Q | A |
---|---|
Branch? | 7.0 |
Bug fix? | no |
New feature? | no |
Deprecations? | no |
Tickets | - |
License | MIT |
Doc PR | - |
rebase unlocked + some fixes needed I guess |
e3220b5
to
824f48a
Compare
…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
to
a250774
Compare
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 the void
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 skip void
return types.
Thank you @wouterj. |