Skip to content

Commit

Permalink
r Lumen 10
Browse files Browse the repository at this point in the history
  • Loading branch information
dusterio committed Aug 10, 2023
1 parent 5194dd4 commit e4b81e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LumenPassport.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public static function tokensExpireIn(DateTimeInterface $date = null, $clientId
*/
public static function routes($callback = null, array $options = [])
{
if ($callback instanceof Application && preg_match('/(5\.[5-8]\..*)|(6\..*)|(7\..*)|(8\..*)|(9\..*)/', $callback->version())) $callback = $callback->router;
if ($callback instanceof Application && preg_match('/(5\.[5-8]\..*)|([6789]\..*)|(10\..*)/', $callback->version())) $callback = $callback->router;

$callback = $callback ?: function ($router) {
$router->all();
Expand Down

0 comments on commit e4b81e9

Please sign in to comment.