Skip to content

Commit 15d0eb5

Browse files
author
Chris Chambers
committed
Fix deprecated str_contains with Str::contains
1 parent 58ba74d commit 15d0eb5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/ServiceProvider.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
<?php
1+
<?php
22

33
namespace Torann\LaravelAsana;
44

5+
use Illuminate\Support\Str;
6+
57
class ServiceProvider extends \Illuminate\Support\ServiceProvider
68
{
79
/**
@@ -65,7 +67,7 @@ public function registerResources()
6567
*/
6668
protected function isLumen()
6769
{
68-
return str_contains($this->app->version(), 'Lumen') === true;
70+
return Str::contains($this->app->version(), 'Lumen') === true;
6971
}
7072

7173
/**

0 commit comments

Comments
 (0)