Skip to content

Commit 2f4c6f0

Browse files
Support for laravel 5.6
1 parent 5b7dacc commit 2f4c6f0

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
}
2121
],
2222
"require": {
23-
"php": ">=7.0.0",
24-
"illuminate/support": "5.3.*|5.4.*|5.5.*",
23+
"php": ">=7.1.3",
24+
"illuminate/support": "5.3.*|5.4.*|5.5.*|5.6.*",
2525
"guzzlehttp/guzzle": "~6.0"
2626
},
2727
"autoload": {
@@ -31,7 +31,7 @@
3131
},
3232
"require-dev": {
3333
"orchestra/testbench": "~3.5",
34-
"phpunit/phpunit": "~6.0"
34+
"phpunit/phpunit": "~6.0|~7.0"
3535
},
3636
"autoload-dev": {
3737
"psr-4": {

src/SmsManager.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,9 @@ public function dispatch(): ResponseInterface
128128
*/
129129
public function send(Device $device, string $message): ResponseInterface
130130
{
131-
$this->device = $device;
132-
$this->message = $message;
133-
134-
return $this->dispatch();
131+
return $this->to($device)
132+
->message($message)
133+
->dispatch();
135134
}
136135

137136
/**
@@ -165,7 +164,9 @@ public function resolveConnection(Device $device): string
165164
}
166165
}
167166

168-
return $connection ?: AdapterException::noPossibleConnection($device);
167+
return isset($connection)
168+
? $connection
169+
: AdapterException::noPossibleConnection($device);
169170
}
170171

171172
/**

0 commit comments

Comments
 (0)