Closed
Description
Description
Current, using the default recipe coming with Symfony 7.2, when one has a controller like that:
#[Route('/conference/{slug}', name: 'conference')]
public function show(Conference $conference) {
One will get this message:
When you know the solution, the fix is trivial:
- #[Route('/conference/{slug}', name: 'conference')]
+ #[Route('/conference/{slug:conference}', name: 'conference')]
But when you don't, you're SOL.
The thing is, we do have the reporting infrastructure to improve this: NearMissValueResolverException
as introduced in #54107.
It'd be great to leverage it for similar cases.
Help wanted.
Example
No response