From e4b81e968125b07083f07619bc7c739c2d58654f Mon Sep 17 00:00:00 2001 From: Denis Mysenko Date: Fri, 11 Aug 2023 07:53:30 +1000 Subject: [PATCH] r Lumen 10 --- src/LumenPassport.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LumenPassport.php b/src/LumenPassport.php index 3306d53..dda5004 100644 --- a/src/LumenPassport.php +++ b/src/LumenPassport.php @@ -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();