| 1 | <?php |
||
| 16 | class AirlineOrFlightOption |
||
| 17 | { |
||
| 18 | const INDICATOR_EXCLUDE = 701; |
||
| 19 | const INDICATOR_OPERATIONAL_CARRIER = 705; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var FlightIdentification[] |
||
| 23 | */ |
||
| 24 | public $flightIdentification = []; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * self::INDICATOR_* |
||
| 28 | * |
||
| 29 | * @var int |
||
| 30 | */ |
||
| 31 | public $excludeAirlineIndicator; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * AirlineOrFlightOption constructor. |
||
| 35 | * @param string[] $airlines |
||
| 36 | * @param string $flightNumber |
||
|
|
|||
| 37 | * @param int|null $indicator |
||
| 38 | */ |
||
| 39 | public function __construct($airlines, $flightNumber = null, $indicator = null) |
||
| 51 | } |
||
| 52 |
This check looks for
@paramannotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.