1 | <?php |
||
11 | class AreaChart extends Chart |
||
12 | { |
||
13 | /** |
||
14 | * @var AreaChartOptions |
||
15 | */ |
||
16 | protected $options; |
||
17 | |||
18 | |||
19 | public function __construct() |
||
25 | |||
26 | |||
27 | /** |
||
28 | * Returns the chart type. |
||
29 | * |
||
30 | * @return string |
||
31 | */ |
||
32 | protected function getType() |
||
36 | |||
37 | /** |
||
38 | * Returns the chart package. |
||
39 | * |
||
40 | * @return string |
||
41 | */ |
||
42 | public function getPackage() |
||
46 | |||
47 | /** |
||
48 | * @return AreaChartOptions |
||
49 | */ |
||
50 | public function getOptions() |
||
54 | |||
55 | /** |
||
56 | * @param $options AreaChartOptions |
||
57 | * |
||
58 | * @return AreaChart |
||
59 | */ |
||
60 | public function setOptions($options) |
||
66 | } |
||
67 |
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.