| 1 | <?php |
||
| 11 | class AnnotationChart extends Chart |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var AnnotationChartOptions |
||
| 15 | */ |
||
| 16 | protected $options; |
||
| 17 | |||
| 18 | |||
| 19 | public function __construct() |
||
| 25 | |||
| 26 | |||
| 27 | /** |
||
| 28 | * @inheritdoc |
||
| 29 | */ |
||
| 30 | protected function getType() |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @inheritdoc |
||
| 37 | */ |
||
| 38 | public function getPackage() |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return AnnotationChartOptions |
||
| 45 | */ |
||
| 46 | public function getOptions() |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @param $options AnnotationChartOptions |
||
| 53 | * |
||
| 54 | * @return AnnotationChart |
||
| 55 | */ |
||
| 56 | public function setOptions($options) |
||
| 62 | } |
||
| 63 |
Our type inference engine has found a suspicous assignment of a value to a property. This check raises an issue when a value that can be of a given class or a super-class is assigned to a property that is type hinted more strictly.
Either this assignment is in error or an instanceof check should be added for that assignment.