Conditions | 2 |
Paths | 1 |
Total Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
21 | public function send() |
||
22 | { |
||
23 | curl_setopt_array($ch = curl_init(), [ |
||
24 | CURLOPT_URL => 'https://api.pushover.net/1/messages.json', |
||
25 | CURLOPT_POSTFIELDS => [ |
||
26 | 'token' => $this->config['token'], |
||
27 | 'user' => $this->config['user'], |
||
28 | 'title' => $this->subject, |
||
29 | 'message' => $this->message, |
||
30 | 'sound' => $this->type === static::TYPE_SUCCESS ? 'pushover' : 'siren', |
||
31 | ], |
||
32 | CURLOPT_SAFE_UPLOAD => true, |
||
33 | CURLOPT_RETURNTRANSFER => true, |
||
34 | ]); |
||
35 | curl_exec($ch); |
||
36 | curl_close($ch); |
||
37 | } |
||
38 | } |
||
39 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..