Open MartkCz opened 1 month ago
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
@butschster hi Could you comment the issue? Is it a bug or a feature?
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