Skip to content
This repository was archived by the owner on Jun 28, 2024. It is now read-only.

Commit 394075c

Browse files
author
Daniël de Wit
committed
Replace str_ helpers with underlying classes ( Illuminate\Support 6 friendly )
1 parent 6fd8679 commit 394075c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/FCMServiceProvider.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace LaravelFCM;
44

5+
use Illuminate\Support\Str;
56
use LaravelFCM\Sender\FCMGroup;
67
use LaravelFCM\Sender\FCMSender;
78
use Illuminate\Support\ServiceProvider;
@@ -12,7 +13,7 @@ class FCMServiceProvider extends ServiceProvider
1213

1314
public function boot()
1415
{
15-
if (str_contains($this->app->version(), 'Lumen')) {
16+
if (Str::contains($this->app->version(), 'Lumen')) {
1617
$this->app->configure('fcm');
1718
} else {
1819
$this->publishes([
@@ -23,7 +24,7 @@ public function boot()
2324

2425
public function register()
2526
{
26-
if (!str_contains($this->app->version(), 'Lumen')) {
27+
if (!Str::contains($this->app->version(), 'Lumen')) {
2728
$this->mergeConfigFrom(__DIR__.'/../config/fcm.php', 'fcm');
2829
}
2930

0 commit comments

Comments
 (0)