1 | <?php |
||
12 | class SteppedAreaChart extends Chart |
||
13 | { |
||
14 | /** |
||
15 | * @var SteppedAreaChartOptions |
||
16 | */ |
||
17 | protected $options; |
||
18 | |||
19 | public function __construct() |
||
25 | |||
26 | /** |
||
27 | * Returns the chart type. |
||
28 | * |
||
29 | * @return string |
||
30 | */ |
||
31 | public function getType() |
||
35 | |||
36 | /** |
||
37 | * Returns the chart package. |
||
38 | * |
||
39 | * @return string |
||
40 | */ |
||
41 | public function getPackage() |
||
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | public function getAvailableEventTypes() |
||
61 | |||
62 | /** |
||
63 | * @return SteppedAreaChartOptions |
||
64 | */ |
||
65 | public function getOptions() |
||
69 | |||
70 | /** |
||
71 | * @param $options SteppedAreaChartOptions |
||
72 | * |
||
73 | * @return SteppedAreaChart |
||
74 | */ |
||
75 | public function setOptions($options) |
||
81 | } |
||
82 |
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.