Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

[HttpKernel] MakeQueryParameterValueResolver 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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
nicolas-grekas merged 1 commit intosymfony:6.3fromMatTheCat:ticket_50339
May 16, 2023

Conversation

MatTheCat
Copy link
Contributor

@MatTheCatMatTheCat commentedMay 16, 2023
edited
Loading

QA
Branch?6.3
Bug fix?yes
New feature?no
Deprecations?no
TicketsFix#50339
LicenseMIT
Doc PRN/A

AsQueryParameterValueResolver 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, ornull if it is nullable. Else the behavior do not change: we throw aNotFoundHttpException.

@nicolas-grekas
Copy link
Member

Thank you@MatTheCat.

@nicolas-grekasnicolas-grekas merged commitb7b0c97 intosymfony:6.3May 16, 2023
@MatTheCatMatTheCat deleted the ticket_50339 branchMay 22, 2023 09:50
@fabpotfabpot mentioned this pull requestMay 22, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@stofstofstof left review comments

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
6.3
Development

Successfully merging this pull request may close these issues.

[HttpKernel] #[MapQueryParameter] Problem with nullable parameters
4 participants
@MatTheCat@nicolas-grekas@stof@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp