Skip to content

Commit

Permalink
Merge pull request #956 from cakephp/routes-function
Browse files Browse the repository at this point in the history
Remove `static` keyword from the function in routes.php.
  • Loading branch information
markstory authored Jul 17, 2023
2 parents 2489b04 + 8b0c984 commit 2341e75
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion config/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@
use Cake\Routing\Route\DashedRoute;
use Cake\Routing\RouteBuilder;

return static function (RouteBuilder $routes) {
/*
* This file is loaded in the context of the `Application` class.
* So you can use `$this` to reference the application class instance
* if required.
*/
return function (RouteBuilder $routes) {
/*
* The default class to use for all routes
*
Expand Down

0 comments on commit 2341e75

Please sign in to comment.