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