Skip to content

Commit fc160c2

Browse files
committed
Replace deprecated helper function with class equivalent
1 parent b205c58 commit fc160c2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/GeoIPServiceProvider.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Torann\GeoIP;
44

5+
use Illuminate\Support\Str;
56
use Illuminate\Support\ServiceProvider;
67

78
class GeoIPServiceProvider extends ServiceProvider
@@ -74,6 +75,6 @@ public function registerGeoIpCommands()
7475
*/
7576
protected function isLumen()
7677
{
77-
return str_contains($this->app->version(), 'Lumen') === true;
78+
return Str::contains($this->app->version(), 'Lumen') === true;
7879
}
7980
}

0 commit comments

Comments
 (0)