Skip to content

Commit 50aede3

Browse files
committed
Improve readme example
1 parent 749cb08 commit 50aede3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ composer require gacela-project/router
3939
```php
4040
# `Bindings` and `Handlers` are optional, and you can place them in any order.
4141

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

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

0 commit comments

Comments
 (0)