Skip to content

Commit

Permalink
Merge pull request #93 from benwilkins/master
Browse files Browse the repository at this point in the history
Fixing regex bug where the app would break on Lumen 5.7.x
  • Loading branch information
dusterio authored Nov 28, 2018
2 parents a811cbe + 891e248 commit 91aa11e
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 @@ -72,7 +72,7 @@ public static function tokensExpireIn(DateTimeInterface $date = null, $clientId
*/
public static function routes($callback = null, array $options = [])
{
if ($callback instanceof Application && preg_match('/5\.[56]\..*/', $callback->version())) $callback = $callback->router;
if ($callback instanceof Application && preg_match('/5\.[5-7]\..*/', $callback->version())) $callback = $callback->router;

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

0 comments on commit 91aa11e

Please sign in to comment.