| 1 | <?php |
||
| 7 | class ClassProperty |
||
| 8 | { |
||
| 9 | public $name; |
||
| 10 | public $modifier = 0; |
||
| 11 | /** @property FQCN|string $type */ |
||
| 12 | public $type = ""; |
||
| 13 | public $defauls = ""; |
||
| 14 | public $doc = ""; |
||
| 15 | |||
| 16 | public function __construct($name = "", $type = "") { |
||
| 20 | |||
| 21 | public function getType() { |
||
| 24 | |||
| 25 | public function setType(FQCN $fqcn) { |
||
| 28 | |||
| 29 | public function isPublic() { |
||
| 32 | |||
| 33 | public function isProtected() { |
||
| 36 | |||
| 37 | public function isPrivate() { |
||
| 40 | |||
| 41 | public function isStatic() { |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @param integer $modifier |
||
| 47 | */ |
||
| 48 | public function setModifier($modifier){ |
||
| 51 | } |
||
| 52 |
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..