| 1 | <?php |
||
| 16 | class FlightIdentification |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * IATA code for the airline |
||
| 20 | * |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | public $airlineCode; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Flight number |
||
| 27 | * |
||
| 28 | * @var string |
||
| 29 | */ |
||
| 30 | public $number; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Flight suffix |
||
| 34 | * |
||
| 35 | * @var string |
||
| 36 | */ |
||
| 37 | public $suffix; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * FlightIdentification constructor. |
||
| 41 | * |
||
| 42 | * @param string $airline Airline code |
||
| 43 | * @param string $flightNumber |
||
|
|
|||
| 44 | */ |
||
| 45 | public function __construct($airline, $flightNumber = null) |
||
| 50 | } |
||
| 51 |
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.