Skip to content

Commit a5321d0

Browse files
authored
Merge pull request #67 from jdavidbakr/master
Updating for Laravel 6.0
2 parents 4554feb + 028850e commit a5321d0

File tree

3 files changed

+22
-20
lines changed

3 files changed

+22
-20
lines changed

.travis.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
11
language: php
22

33
php:
4-
- 5.6
5-
- 7.0
6-
- 7.1
4+
- 5.6
5+
- 7.0
6+
- 7.1
7+
- 7.2
78

89
env:
9-
matrix:
10-
- COMPOSER_FLAGS="--prefer-lowest"
11-
- COMPOSER_FLAGS=""
10+
matrix:
11+
- COMPOSER_FLAGS="--prefer-lowest"
12+
- COMPOSER_FLAGS=""
1213

1314
before_script:
14-
- travis_retry composer self-update
15-
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-source
15+
- travis_retry composer self-update
16+
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-source
1617

1718
script:
18-
- phpunit --coverage-text --coverage-clover=coverage.clover
19+
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
1920

2021
after_script:
21-
- wget https://scrutinizer-ci.com/ocular.phar
22-
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
22+
- wget https://scrutinizer-ci.com/ocular.phar
23+
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
"require": {
1515
"php": ">=5.5.9",
1616
"twilio/sdk": "~5.16",
17-
"illuminate/notifications": "^5.1",
18-
"illuminate/support": "^5.1",
19-
"illuminate/events": "^5.1",
20-
"illuminate/queue": "^5.1"
17+
"illuminate/notifications": "^5.1|^6.0",
18+
"illuminate/support": "^5.1|^6.0",
19+
"illuminate/events": "^5.1|^6.0",
20+
"illuminate/queue": "^5.1|^6.0"
2121
},
2222
"require-dev": {
2323
"mockery/mockery": "^0.9.5",
24-
"phpunit/phpunit": "4.*"
24+
"phpunit/phpunit": "5.*"
2525
},
2626
"autoload": {
2727
"psr-4": {

src/TwilioProvider.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace NotificationChannels\Twilio;
44

5+
use Illuminate\Support\Arr;
56
use Illuminate\Support\ServiceProvider;
67
use Twilio\Rest\Client as TwilioService;
78

@@ -23,14 +24,14 @@ public function boot()
2324

2425
$this->app->bind(TwilioService::class, function () {
2526
$config = $this->app['config']['services.twilio'];
26-
$account_sid = array_get($config, 'account_sid');
27-
$username = array_get($config, 'username');
27+
$account_sid = Arr::get($config, 'account_sid');
28+
$username = Arr::get($config, 'username');
2829
if (! empty($username)) {
29-
$password = array_get($config, 'password');
30+
$password = Arr::get($config, 'password');
3031

3132
return new TwilioService($username, $password, $account_sid);
3233
} else {
33-
$auth_token = array_get($config, 'auth_token');
34+
$auth_token = Arr::get($config, 'auth_token');
3435

3536
return new TwilioService($account_sid, $auth_token);
3637
}

0 commit comments

Comments
 (0)