Skip to content
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

[HttpKernel] Improve error reporting when requiring the wrong Request class #54107

Merged
merged 1 commit into from Mar 9, 2024

Conversation

ilyachase
Copy link
Contributor

@ilyachase ilyachase commented Feb 29, 2024

Q A
Branch? 7.1
Bug fix? no
New feature? yes
Deprecations? no
Issues Fix #54015
License MIT

NearMissValueResolverException is introduced to be used inside any implementer of ValueResolverInterface to specify why exactly a value cannot be resolved. It's later used in ArgumentResolver to compute an exception if no value resolvers can resolve the value.

@ilyachase
Copy link
Contributor Author

Not sure what to do with failed checks - errors seem irrelevant to my changes. Please help.

@carsonbot carsonbot changed the title Fix 54015 [HttpKernel] Fix 54015 Feb 29, 2024
@derrabus
Copy link
Member

Please find a meaningful title for your PR. We use PR titles to compose the change log.

Not sure what to do with failed checks

If you didn't cause them, ignore them.

@ilyachase ilyachase changed the title [HttpKernel] Fix 54015 [HttpKernel] Improve error reporting when requiring the wrong Request class Feb 29, 2024
@ilyachase
Copy link
Contributor Author

Please find a meaningful title for your PR. We use PR titles to compose the change log.

Done.

If you didn't cause them, ignore them.

👌

@ilyachase ilyachase requested a review from stof February 29, 2024 14:12
Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like that :)

Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Almost GTM :)

@ilyachase
Copy link
Contributor Author

@stof @nicolas-grekas hey folks, let's get this PR moving? 🙂 I believe I addressed everything

@fabpot
Copy link
Member

fabpot commented Mar 9, 2024

Thank you @ilyachase.

@fabpot fabpot merged commit de948d3 into symfony:7.1 Mar 9, 2024
8 of 10 checks passed
@ilyachase ilyachase deleted the fix_54015 branch March 13, 2024 16:39
@fabpot fabpot mentioned this pull request May 2, 2024
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.

Improve error reporting when targetting the wrong Request class
9 participants