| 1 | <?php |
||
| 7 | class DBStaticFleetMissile { |
||
| 8 | |||
| 9 | public static function db_missile_insert($target_coord, $user, $planetrow, $arrival, $fleet_ship_count, $target_structure) { |
||
| 24 | |||
| 25 | |||
| 26 | /** |
||
| 27 | * @param $fleetDbId |
||
| 28 | */ |
||
| 29 | public static function db_missile_delete($fleetDbId) { |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @return array|bool|mysqli_result|null |
||
| 40 | */ |
||
| 41 | public static function db_missile_list_by_arrival() { |
||
| 46 | |||
| 47 | |||
| 48 | } |
It seems like the method you are trying to call exists only in some of the possible types.
Let’s take a look at an example:
Available Fixes
Add an additional type-check:
Only allow a single type to be passed if the variable comes from a parameter: