Skip to content

Commit

Permalink
Replace array_get() with Arr::get() for compatibility with Laravel 6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Inti Pontt committed Sep 4, 2019
1 parent 34189ff commit 707ab89
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Documentarian.php
Expand Up @@ -2,6 +2,7 @@

namespace Mpociot\Documentarian;

use Illuminate\Support\Arr;
use Mni\FrontYAML\Parser;
use Windwalker\Renderer\BladeRenderer;

Expand All @@ -22,7 +23,7 @@ public function config($folder, $key = null)
{
$config = include($folder . '/source/config.php');

return is_null($key) ? $config : array_get($config, $key);
return is_null($key) ? $config : Arr::get($config, $key);
}

/**
Expand Down

0 comments on commit 707ab89

Please sign in to comment.