diff --git a/composer.json b/composer.json index 8a6d4c3..f1e6998 100644 --- a/composer.json +++ b/composer.json @@ -10,10 +10,7 @@ ], "require": { "php-smpp/php-smpp": "1.2", - "illuminate/support": "^5.2" - }, - "require-dev": { - "phpunit/phpunit": "~5.0" + "illuminate/support": "^5|^6|^7" }, "autoload": { "psr-4": { diff --git a/src/SmppService.php b/src/SmppService.php index b57dabc..f0a3309 100644 --- a/src/SmppService.php +++ b/src/SmppService.php @@ -4,6 +4,7 @@ use Exception; use Illuminate\Contracts\Config\Repository; +use Illuminate\Support\Arr; use Log; use SMPP; use SmppAddress; @@ -240,6 +241,6 @@ protected function getConfig($option) $key = $this->provider . '.' . $option; $default = $this->config->get(sprintf('laravel-smpp.defaults.%s', $option)); - return array_get($this->providers, $key, $default); + return Arr::get($this->providers, $key, $default); } } \ No newline at end of file