Fix in Router::generate()
Fix in Router::generate()

Fix in Router::generate(), replace matching key in url while looping through param_key.

otherwise, with route  : /action/:type/:id , $router->generate($namedRoute,['id'=>1,'type'=>'type']) generate /action/1/type.
dannyvankooten/PHP-Router