1 | <?php |
||
11 | class GanttChart extends Chart |
||
12 | { |
||
13 | /** |
||
14 | * @var GanttChartOptions |
||
15 | */ |
||
16 | protected $options; |
||
17 | |||
18 | /** |
||
19 | * GanttChart constructor. |
||
20 | */ |
||
21 | 1 | public function __construct() |
|
27 | |||
28 | /** |
||
29 | * {@inheritdoc} |
||
30 | */ |
||
31 | 1 | public function getType() |
|
35 | |||
36 | /** |
||
37 | * {@inheritdoc} |
||
38 | */ |
||
39 | 1 | public function getPackage() |
|
43 | |||
44 | /** |
||
45 | * @return GanttChartOptions |
||
46 | */ |
||
47 | 1 | public function getOptions() |
|
51 | |||
52 | /** |
||
53 | * @param $options GanttChartOptions |
||
54 | * |
||
55 | * @return GanttChart |
||
56 | */ |
||
57 | public function setOptions($options) |
||
63 | } |
||
64 |
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.