| 1 | <?php |
||
| 10 | class Location extends BaseExample { |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var double[] |
||
| 14 | */ |
||
| 15 | protected $coordinates; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Find random location. |
||
| 19 | * |
||
| 20 | * @return self |
||
| 21 | */ |
||
| 22 | 1 | public function find() { |
|
| 34 | |||
| 35 | /** |
||
| 36 | * Get the coordinates. |
||
| 37 | * |
||
| 38 | * @return string |
||
| 39 | */ |
||
| 40 | 1 | public function getCoordinates() { |
|
| 43 | |||
| 44 | } |
||
| 45 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..