| 1 | <?php |
||
| 31 | class SequenceNumber |
||
| 32 | { |
||
| 33 | /** |
||
| 34 | * @var ItemNumberDetails |
||
| 35 | */ |
||
| 36 | public $itemNumberDetails; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * SequenceNumber constructor. |
||
| 40 | * |
||
| 41 | * @param string|int $itemNumber |
||
| 42 | * @param string $itemNumberType ItemNumberDetails::TYPE_* |
||
|
|
|||
| 43 | */ |
||
| 44 | 2 | public function __construct($itemNumber, $itemNumberType = null) |
|
| 48 | } |
||
| 49 |
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.