Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 2 |
1 | <?php |
||
25 | public function send() |
||
26 | { |
||
27 | curl_setopt_array($ch = curl_init(), [ |
||
28 | CURLOPT_URL => 'https://api.pushover.net/1/messages.json', |
||
29 | CURLOPT_POSTFIELDS => [ |
||
30 | 'token' => $this->config['token'], |
||
31 | 'user' => $this->config['user'], |
||
32 | 'title' => $this->subject, |
||
33 | 'message' => $this->message, |
||
34 | 'sound' => $this->getSound(), |
||
35 | ], |
||
36 | CURLOPT_SAFE_UPLOAD => true, |
||
37 | ]); |
||
38 | curl_exec($ch); |
||
39 | curl_close($ch); |
||
40 | } |
||
41 | |||
56 |
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..