Skip to content

Commit 30ab7c5

Browse files
authored
Merge pull request #88 from dextercampos/hotfix/use-str-class-helper-instead-of-function-helpers
Updated use of `str_contains` to `Illuminate\Support\Str::contains`
2 parents cc2bac3 + 0c264c7 commit 30ab7c5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/MigrationsServiceProvider.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace LaravelDoctrine\Migrations;
44

55
use Illuminate\Support\ServiceProvider;
6+
use Illuminate\Support\Str;
67
use LaravelDoctrine\Migrations\Configuration\ConfigurationProvider;
78
use LaravelDoctrine\Migrations\Console\DiffCommand;
89
use LaravelDoctrine\Migrations\Console\ExecuteCommand;
@@ -65,7 +66,7 @@ protected function mergeConfig()
6566
if ($this->isLumen()) {
6667
$this->app->configure('migrations');
6768
}
68-
69+
6970
$this->mergeConfigFrom(
7071
$this->getConfigPath(), 'migrations'
7172
);
@@ -94,6 +95,6 @@ public function provides()
9495
*/
9596
protected function isLumen()
9697
{
97-
return str_contains($this->app->version(), 'Lumen');
98+
return Str::contains($this->app->version(), 'Lumen');
9899
}
99100
}

0 commit comments

Comments
 (0)