Skip to content

Commit 7a85d92

Browse files
committed
Use version_compare instead of starts with
1 parent 10ee998 commit 7a85d92

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Jenssegers/Mongodb/Auth/PasswordBrokerManager.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<?php namespace Jenssegers\Mongodb\Auth;
1+
<?php
2+
3+
namespace Jenssegers\Mongodb\Auth;
24

35
use Illuminate\Auth\Passwords\PasswordBrokerManager as BasePasswordBrokerManager;
46

@@ -11,7 +13,7 @@ protected function createTokenRepository(array $config)
1113
{
1214
$laravel = app();
1315

14-
if (starts_with($laravel::VERSION, '5.4')) {
16+
if (version_compare($laravel::VERSION, '5.4', '>=')) {
1517
return new DatabaseTokenRepository(
1618
$this->app['db']->connection(),
1719
$this->app['hash'],

0 commit comments

Comments
 (0)