Skip to content

Commit

Permalink
Remove deprecated str_contains function
Browse files Browse the repository at this point in the history
  • Loading branch information
CalumTowers authored Dec 22, 2019
1 parent 4acc812 commit 9de09a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Vatsim/Xml/XmlServiceProvider.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php namespace Vatsim\Xml;

use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Str;

class XmlServiceProvider extends ServiceProvider {

Expand Down Expand Up @@ -37,7 +38,7 @@ public function register()
// Lumen users need to copy the config themselves
// And it needs to pulled completely differently.
// So more work required. Luckily barryvdh had the answer - so thanks.
if(str_contains($this->app->version(), "Lumen")){
if(Str::contains($this->app->version(), "Lumen")){
$this->app->configure("vatsim-xml");
} else {
$this->publishes([
Expand Down

0 comments on commit 9de09a9

Please sign in to comment.