1 | <?php |
||
12 | class AreaChart extends Chart |
||
13 | { |
||
14 | /** |
||
15 | * @var AreaChartOptions |
||
16 | */ |
||
17 | protected $options; |
||
18 | |||
19 | /** |
||
20 | * AreaChart constructor. |
||
21 | */ |
||
22 | public function __construct() |
||
28 | |||
29 | /** |
||
30 | * Returns the chart type. |
||
31 | * |
||
32 | * @return string |
||
33 | */ |
||
34 | public function getType() |
||
38 | |||
39 | /** |
||
40 | * Returns the chart package. |
||
41 | * |
||
42 | * @return string |
||
43 | */ |
||
44 | public function getPackage() |
||
48 | |||
49 | /** |
||
50 | * {@inheritdoc} |
||
51 | */ |
||
52 | public function getAvailableEventTypes() |
||
64 | |||
65 | /** |
||
66 | * @return AreaChartOptions |
||
67 | */ |
||
68 | public function getOptions() |
||
72 | |||
73 | /** |
||
74 | * @param $options AreaChartOptions |
||
75 | * |
||
76 | * @return AreaChart |
||
77 | */ |
||
78 | public function setOptions($options) |
||
84 | } |
||
85 |
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.