| 1 | <?php |
||
| 12 | class LineChart extends Chart |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var LineChartOptions |
||
| 16 | */ |
||
| 17 | protected $options; |
||
| 18 | |||
| 19 | 1 | public function __construct() |
|
| 25 | |||
| 26 | /** |
||
| 27 | * {@inheritdoc} |
||
| 28 | */ |
||
| 29 | 1 | public function getType() |
|
| 33 | |||
| 34 | /** |
||
| 35 | * {@inheritdoc} |
||
| 36 | */ |
||
| 37 | 1 | public function getPackage() |
|
| 41 | |||
| 42 | /** |
||
| 43 | * {@inheritdoc} |
||
| 44 | */ |
||
| 45 | public function getAvailableEventTypes() |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @return LineChartOptions |
||
| 60 | */ |
||
| 61 | 1 | public function getOptions() |
|
| 65 | |||
| 66 | /** |
||
| 67 | * @param $options LineChartOptions |
||
| 68 | * |
||
| 69 | * @return LineChart |
||
| 70 | */ |
||
| 71 | public function setOptions($options) |
||
| 77 | } |
||
| 78 |
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.