We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When a parameter is not passed, even though it is required in a route, it is ignored without raising an error.
$routes->add('articles.list', '/articles') ->callable(fn () => new Response()); $routes->add('articles.detail', '/articles/<id>') ->callable(fn () => new Response()); var_dump($router->uri('articles.detail')->getPath()); // == /articles - Better solution is exception or warning var_dump($router->uri('articles.list')->getPath()); // == /articles var_dump($router->uri('articles.detail', ['id' => 1])->getPath()); // == /articles/1
The text was updated successfully, but these errors were encountered:
@butschster hi Could you comment the issue? Is it a bug or a feature?
Sorry, something went wrong.
No branches or pull requests
Description
When a parameter is not passed, even though it is required in a route, it is ignored without raising an error.
How To Reproduce
The text was updated successfully, but these errors were encountered: