Skip to content

Commit

Permalink
Add RouteAttributes interface in signature of method `RouterInterfa…
Browse files Browse the repository at this point in the history
…ce::generate()`
  • Loading branch information
ElGigi committed Jun 7, 2021
1 parent bf822d1 commit 5a243ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/RouterInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ interface RouterInterface extends RouteSetInterface
* Generate route.
*
* @param string $name
* @param array $parameters
* @param array|RouteAttributes $parameters
*
* @return string
* @throws RoutingException
*/
public function generate(string $name, array $parameters = []): string;
public function generate(string $name, array|RouteAttributes $parameters = []): string;

/**
* Is valid request?
Expand Down

0 comments on commit 5a243ec

Please sign in to comment.