| 1 | <?php |
||
| 12 | class AnnotationChart extends Chart |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var AnnotationChartOptions |
||
| 16 | */ |
||
| 17 | protected $options; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * AnnotationChart constructor. |
||
| 21 | */ |
||
| 22 | 1 | public function __construct() |
|
| 28 | |||
| 29 | /** |
||
| 30 | * {@inheritdoc} |
||
| 31 | */ |
||
| 32 | 1 | public function getType() |
|
| 36 | |||
| 37 | /** |
||
| 38 | * {@inheritdoc} |
||
| 39 | */ |
||
| 40 | 1 | public function getPackage() |
|
| 44 | |||
| 45 | /** |
||
| 46 | * {@inheritdoc} |
||
| 47 | */ |
||
| 48 | public function getAvailableEventTypes() |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @return AnnotationChartOptions |
||
| 59 | */ |
||
| 60 | 1 | public function getOptions() |
|
| 64 | |||
| 65 | /** |
||
| 66 | * @param $options AnnotationChartOptions |
||
| 67 | * |
||
| 68 | * @return AnnotationChart |
||
| 69 | */ |
||
| 70 | public function setOptions($options) |
||
| 76 | } |
||
| 77 |
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.