1 | <?php |
||
4 | class Message |
||
5 | { |
||
6 | public $id; |
||
7 | public $raw; |
||
8 | public $headers; |
||
9 | public $text; |
||
10 | public $html; |
||
11 | public $subject; |
||
12 | public $from = array(); |
||
13 | public $to = array(); |
||
14 | public $cc = array(); |
||
15 | public $source; |
||
16 | public $metadata = array(); |
||
17 | |||
18 | public function setRaw($raw) |
||
22 | |||
23 | public function setHeaders(array $headers) |
||
33 | |||
34 | public function setText($text) |
||
38 | |||
39 | public function setHtml($html) |
||
43 | |||
44 | public function setSubject($subject) |
||
48 | |||
49 | public function setFrom($email, $name = null) |
||
56 | |||
57 | public function setTo(array $tos) |
||
66 | |||
67 | public function setCc(array $ccs) |
||
76 | |||
77 | public function setSource($source) |
||
81 | |||
82 | public function setId($id) |
||
86 | |||
87 | public function hasMetadata($name) |
||
91 | } |
||
92 |
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..