Skip to content

Commit

Permalink
Merge pull request #88 from dextercampos/hotfix/use-str-class-helper-…
Browse files Browse the repository at this point in the history
…instead-of-function-helpers

Updated use of `str_contains` to `Illuminate\Support\Str::contains`
  • Loading branch information
eigan authored Sep 24, 2019
2 parents cc2bac3 + 0c264c7 commit 30ab7c5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/MigrationsServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace LaravelDoctrine\Migrations;

use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Str;
use LaravelDoctrine\Migrations\Configuration\ConfigurationProvider;
use LaravelDoctrine\Migrations\Console\DiffCommand;
use LaravelDoctrine\Migrations\Console\ExecuteCommand;
Expand Down Expand Up @@ -65,7 +66,7 @@ protected function mergeConfig()
if ($this->isLumen()) {
$this->app->configure('migrations');
}

$this->mergeConfigFrom(
$this->getConfigPath(), 'migrations'
);
Expand Down Expand Up @@ -94,6 +95,6 @@ public function provides()
*/
protected function isLumen()
{
return str_contains($this->app->version(), 'Lumen');
return Str::contains($this->app->version(), 'Lumen');
}
}

0 comments on commit 30ab7c5

Please sign in to comment.