| 1 | <?php |
||
| 31 | class FlightDetail |
||
| 32 | { |
||
| 33 | const FLIGHT_TYPE_CONNECTING = "C"; |
||
| 34 | const FLIGHT_TYPE_DIRECT = "D"; |
||
| 35 | const FLIGHT_TYPE_DISABLE_NEGO_SPACE = "DN"; |
||
| 36 | const FLIGHT_TYPE_NON_STOP = "N"; |
||
| 37 | const FLIGHT_TYPE_RETURN_CHEAPEST_ONLINE = "OL"; |
||
| 38 | const FLIGHT_TYPE_OVERNIGHT_NOT_ALLOWED = "OV"; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * self::FLIGHT_TYPE_* |
||
| 42 | * |
||
| 43 | * @var string[] |
||
| 44 | */ |
||
| 45 | public $flightType = []; |
||
| 46 | |||
| 47 | /** |
||
| 48 | * FlightDetail constructor. |
||
| 49 | * |
||
| 50 | * @param \string[] $flightType |
||
| 51 | */ |
||
| 52 | public function __construct(array $flightType = []) |
||
| 56 | } |
||
| 57 |
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..