Skip to content

Commit

Permalink
Improve readme example
Browse files Browse the repository at this point in the history
  • Loading branch information
Chemaclass committed Apr 27, 2023
1 parent 749cb08 commit 50aede3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ composer require gacela-project/router
```php
# `Bindings` and `Handlers` are optional, and you can place them in any order.

$router = new Router(static function (Routes $routes, Bindings $bindings, Handlers $handlers) void {
$router = new Router(function (Routes $routes, Bindings $bindings, Handlers $handlers) {

// Custom redirections
$routes->redirect('docs', 'https://gacela-project.com/');
Expand Down

0 comments on commit 50aede3

Please sign in to comment.