-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Services ids from the ContainerBuilder can be integers #32549
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
Comments
at least we have a potential type violation here: symfony/src/Symfony/Component/DependencyInjection/Dumper/GraphvizDumper.php Lines 173 to 178 in 2c9a196
Casting to string on-call sounds reasonable. |
@ro0NL there is no type violation here, as GraphizDumper doesn't run in strict mode. |
@stof , fair .. i meant a conceptual violation. We expect |
Well, the violation is more in the implementation of |
This PR was merged into the 3.4 branch. Discussion ---------- Container*::getServiceIds() should return strings | Q | A | ------------- | --- | Branch? | 4.3 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | o | Tests pass? | yes | Fixed tickets | #32549 | License | MIT Cast services ids to string in `Container*::getServiceIds()` Commits ------- 9c88caa Container*::getServiceIds() should return an array of string
ContainerBuilder::getServiceIds()
can return integers. It tries to cast all ids to string on input but because they're used as array keys, they are converted to integer if they are numericrelated issue : sonata-project/SonataAdminBundle#5638
It was easier to to a PR against sonata-admin-bundle but I think it should be fixed in Symfony too
The text was updated successfully, but these errors were encountered: