Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Routing] Remove dead is_object() check #57642

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

Merged
merged 1 commit into from
Jul 4, 2024

Conversation

derrabus
Copy link
Member

@derrabus derrabus commented Jul 4, 2024

Q A
Branch? 7.2
Bug fix? no
New feature? no
Deprecations? no
Issues N/A
License MIT

Right after we call ObjectLoader::getObject(), we check if the returned value is actually an object. Since 6.0 (#42509), that method has a native return type of object, so we can be pretty sure that we won't ever not hold an object in our hands here.

@carsonbot carsonbot added this to the 7.2 milestone Jul 4, 2024
@carsonbot carsonbot changed the title [Router] Remove dead is_object() check [Routing] Remove dead is_object() check Jul 4, 2024
@derrabus derrabus merged commit 79165a4 into symfony:7.2 Jul 4, 2024
7 of 10 checks passed
@derrabus derrabus deleted the chore/dead-is-object-check branch September 19, 2024 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants