Skip to content

[Routing] add a warning about object as extra parameter in route #15069

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
Apr 16, 2021

Conversation

garak
Copy link
Contributor

@garak garak commented Mar 7, 2021

As explained in this issue, objects are not converted to string when used as extra parameter.
I think that user should be warned about such behaviour, because failing to casting object is resulting in an empty query string, without any notice/warning/error.

@carsonbot carsonbot added this to the 4.4 milestone Mar 7, 2021
@carsonbot carsonbot changed the title add a warning about object as extra parameter in route [Routing] add a warning about object as extra parameter in route Apr 16, 2021
@javiereguiluz javiereguiluz merged commit 5e0c67a into symfony:4.4 Apr 16, 2021
@javiereguiluz
Copy link
Member

I wasn't aware of this! Massimiliano, thanks for adding this important note.

@garak garak deleted the route-extra-param-warning branch April 16, 2021 11:20
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.

3 participants