| 1 | <?php |
||
| 31 | class Reference |
||
| 32 | { |
||
| 33 | const QUAL_FORM_OF_PAYMENT_LINE = "FPL"; |
||
| 34 | const QUAL_FORM_OF_PAYMENT_TATTOO = "FPT"; |
||
| 35 | const QUAL_SALES_FORM_OF_PAYMENT_TATTOO = "SFPT"; |
||
| 36 | const QUAL_FP_ASSOCIATED_TO_TSM_TATTOO = "TSM"; |
||
| 37 | const QUAL_TRANSITIONAL_STORED_TICKET = "TST"; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * self::QUAL_* |
||
| 41 | * |
||
| 42 | * @var string |
||
| 43 | */ |
||
| 44 | public $qualifier; |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @var string|int |
||
| 48 | */ |
||
| 49 | public $number; |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Reference constructor. |
||
| 53 | * |
||
| 54 | * @param string $qualifier |
||
|
|
|||
| 55 | * @param string|int $number |
||
| 56 | */ |
||
| 57 | 2 | public function __construct($qualifier = null, $number = null) |
|
| 62 | } |
||
| 63 |
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.