Skip to content

Commit

Permalink
Merge pull request #9 from franzose/1.3
Browse files Browse the repository at this point in the history
support for newer Laravel versions
  • Loading branch information
franzose authored Apr 12, 2020
2 parents 3bf3fb3 + e32f4e5 commit 9814728
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 1 addition & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
3 changes: 2 additions & 1 deletion src/SmppService.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Exception;
use Illuminate\Contracts\Config\Repository;
use Illuminate\Support\Arr;
use Log;
use SMPP;
use SmppAddress;
Expand Down Expand Up @@ -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);
}
}

0 comments on commit 9814728

Please sign in to comment.