From 394075c82d3e3384f77fa774842fe9a225697d87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danie=CC=88l=20de=20Wit?= Date: Tue, 17 Sep 2019 16:02:14 +0200 Subject: [PATCH] Replace str_ helpers with underlying classes ( Illuminate\Support 6 friendly ) --- src/FCMServiceProvider.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/FCMServiceProvider.php b/src/FCMServiceProvider.php index 63cc65151..bab6cf6da 100644 --- a/src/FCMServiceProvider.php +++ b/src/FCMServiceProvider.php @@ -2,6 +2,7 @@ namespace LaravelFCM; +use Illuminate\Support\Str; use LaravelFCM\Sender\FCMGroup; use LaravelFCM\Sender\FCMSender; use Illuminate\Support\ServiceProvider; @@ -12,7 +13,7 @@ class FCMServiceProvider extends ServiceProvider public function boot() { - if (str_contains($this->app->version(), 'Lumen')) { + if (Str::contains($this->app->version(), 'Lumen')) { $this->app->configure('fcm'); } else { $this->publishes([ @@ -23,7 +24,7 @@ public function boot() public function register() { - if (!str_contains($this->app->version(), 'Lumen')) { + if (!Str::contains($this->app->version(), 'Lumen')) { $this->mergeConfigFrom(__DIR__.'/../config/fcm.php', 'fcm'); }