Skip to content

Commit

Permalink
Allows to unset the callback
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro committed Mar 13, 2024
1 parent 6e1e785 commit bc24881
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ protected function routes(Closure $routesCallback)
/**
* Register the callback that will be used to load the application's routes.
*
* @param \Closure $routesCallback
* @param \Closure|null $routesCallback
* @return void
*/
public static function loadRoutesUsing(Closure $routesCallback)
public static function loadRoutesUsing(?Closure $routesCallback)
{
self::$alwaysLoadRoutesUsing = $routesCallback;
}
Expand Down

0 comments on commit bc24881

Please sign in to comment.