File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 20
20
}
21
21
],
22
22
"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.* " ,
25
25
"guzzlehttp/guzzle" : " ~6.0"
26
26
},
27
27
"autoload" : {
31
31
},
32
32
"require-dev" : {
33
33
"orchestra/testbench" : " ~3.5" ,
34
- "phpunit/phpunit" : " ~6.0"
34
+ "phpunit/phpunit" : " ~6.0|~7.0 "
35
35
},
36
36
"autoload-dev" : {
37
37
"psr-4" : {
Original file line number Diff line number Diff line change @@ -128,10 +128,9 @@ public function dispatch(): ResponseInterface
128
128
*/
129
129
public function send (Device $ device , string $ message ): ResponseInterface
130
130
{
131
- $ this ->device = $ device ;
132
- $ this ->message = $ message ;
133
-
134
- return $ this ->dispatch ();
131
+ return $ this ->to ($ device )
132
+ ->message ($ message )
133
+ ->dispatch ();
135
134
}
136
135
137
136
/**
@@ -165,7 +164,9 @@ public function resolveConnection(Device $device): string
165
164
}
166
165
}
167
166
168
- return $ connection ?: AdapterException::noPossibleConnection ($ device );
167
+ return isset ($ connection )
168
+ ? $ connection
169
+ : AdapterException::noPossibleConnection ($ device );
169
170
}
170
171
171
172
/**
You can’t perform that action at this time.
0 commit comments