-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[HttpKernel] Improve error reporting when requiring the wrong Request class #54107
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
Conversation
Not sure what to do with failed checks - errors seem irrelevant to my changes. Please help. |
Please find a meaningful title for your PR. We use PR titles to compose the change log.
If you didn't cause them, ignore them. |
Done.
👌 |
src/Symfony/Component/HttpKernel/Controller/ArgumentResolver.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/HttpKernel/Controller/ArgumentResolver/RequestValueResolver.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/HttpKernel/Controller/ArgumentResolver/RequestValueResolver.php
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like that :)
src/Symfony/Component/HttpKernel/Controller/ArgumentResolver.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/HttpKernel/Controller/ArgumentResolver.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/HttpKernel/Controller/ArgumentResolver.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/HttpKernel/Exception/FailedToResolveValueException.php
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost GTM :)
src/Symfony/Component/HttpKernel/Controller/ArgumentResolver.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/HttpKernel/Exception/NearMissValueResolverException.php
Show resolved
Hide resolved
src/Symfony/Component/HttpKernel/Tests/Controller/ArgumentResolverTest.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/HttpKernel/Controller/ArgumentResolver.php
Outdated
Show resolved
Hide resolved
@stof @nicolas-grekas hey folks, let's get this PR moving? 🙂 I believe I addressed everything |
Thank you @ilyachase. |
NearMissValueResolverException
is introduced to be used inside any implementer ofValueResolverInterface
to specify why exactly a value cannot be resolved. It's later used inArgumentResolver
to compute an exception if no value resolvers can resolve the value.