Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[HttpKernel] Make QueryParameterValueResolver provide a value if possible when a parameter is not found #50340

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
May 16, 2023

Conversation

MatTheCat
Copy link
Contributor

@MatTheCat MatTheCat commented May 16, 2023

Q A
Branch? 6.3
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #50339
License MIT
Doc PR N/A

As QueryParameterValueResolver is “targeted” it must provide a value itself if possible.

When a parameter is not found in the query string, we want to return the argument’s default value if it has one, or null if it is nullable. Else the behavior do not change: we throw a NotFoundHttpException.

@nicolas-grekas
Copy link
Member

Thank you @MatTheCat.

@nicolas-grekas nicolas-grekas merged commit b7b0c97 into symfony:6.3 May 16, 2023
@MatTheCat MatTheCat deleted the ticket_50339 branch May 22, 2023 09:50
@fabpot fabpot mentioned this pull request May 22, 2023
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.

[HttpKernel] #[MapQueryParameter] Problem with nullable parameters
4 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.