From 7393732b2f3a3ee357974cbb0c46c9b65b84dad1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleksandr=20=C5=A0t=C5=A1epelin?= Date: Fri, 23 Aug 2019 17:30:33 +0300 Subject: [PATCH] str_contains bug fix on laravel ^6.0 (#601) All str_ and array_ helpers have been removed from the framework. --- src/ServiceProvider.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ServiceProvider.php b/src/ServiceProvider.php index 26d18f5..a47fda9 100644 --- a/src/ServiceProvider.php +++ b/src/ServiceProvider.php @@ -3,6 +3,7 @@ use Dompdf\Dompdf; use Exception; +use Illuminate\Support\Str; use Illuminate\Support\ServiceProvider as IlluminateServiceProvider; class ServiceProvider extends IlluminateServiceProvider @@ -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()