Skip to content

Commit

Permalink
str_contains bug fix on laravel ^6.0 (#601)
Browse files Browse the repository at this point in the history
All str_ and array_ helpers have been removed from the framework.
  • Loading branch information
stsepelin authored and barryvdh committed Aug 23, 2019
1 parent a86e2d4 commit 7393732
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

use Dompdf\Dompdf;
use Exception;
use Illuminate\Support\Str;
use Illuminate\Support\ServiceProvider as IlluminateServiceProvider;

class ServiceProvider extends IlluminateServiceProvider
Expand Down Expand Up @@ -66,7 +67,7 @@ public function register()
*/
protected function isLumen()
{
return str_contains($this->app->version(), 'Lumen') === true;
return Str::contains($this->app->version(), 'Lumen') === true;
}

public function boot()
Expand Down

0 comments on commit 7393732

Please sign in to comment.