| 1 | <?php |
||
| 5 | class MasterDriver |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * To Numbers array. |
||
| 9 | * |
||
| 10 | * @var array |
||
| 11 | */ |
||
| 12 | protected $recipients = []; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Message body. |
||
| 16 | * |
||
| 17 | * @var null |
||
| 18 | */ |
||
| 19 | protected $body = ""; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * String or Array of numbers. |
||
| 23 | * |
||
| 24 | * @param $numbers string|array |
||
| 25 | * @return $this |
||
| 26 | * @throws \Exception |
||
| 27 | */ |
||
| 28 | public function to($numbers) |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Set text message body. |
||
| 46 | * |
||
| 47 | * @param $message string |
||
| 48 | * @return $this |
||
| 49 | * @throws \Exception |
||
| 50 | */ |
||
| 51 | public function message($message) |
||
| 63 | |||
| 64 | } |
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..