-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Improve-callable-typing #60762
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
Improve-callable-typing #60762
Conversation
609c5fd
to
eeb6152
Compare
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php
Outdated
Show resolved
Hide resolved
Thanks for the review. |
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php
Outdated
Show resolved
Hide resolved
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.
LGTM except for the changes in FrameworkBundle's DependencyInjection namespace which look useless to me.
435e0be
to
fb3c39c
Compare
I reverted those changes. But I would like to say: static analysis tools are only as useful as the typing you give them! |
Thank you @jack-worman. |
Defining a callable's shape is important to have valid static analysis.
It also improves documentation because developers no longer need to search the source code for what callable shape to use.