| 1 | <?php |
||
| 12 | class Map extends Chart |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var MapOptions |
||
| 16 | */ |
||
| 17 | protected $options; |
||
| 18 | |||
| 19 | 1 | 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 | 1 | public function getAvailableEventTypes() |
|
| 56 | |||
| 57 | /** |
||
| 58 | * @return MapOptions |
||
| 59 | */ |
||
| 60 | public function getOptions() |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @param $options MapOptions |
||
| 67 | * |
||
| 68 | * @return Map |
||
| 69 | */ |
||
| 70 | public function setOptions($options) |
||
| 76 | } |
||
| 77 |
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.