1 | <?php |
||
11 | class BpostInvalidWeightException extends BpostLogicException |
||
12 | { |
||
13 | /** |
||
14 | * @param string $invalidWeight |
||
15 | * @param int $maximumWeight |
||
16 | * @param int $code |
||
17 | * @param \Exception $previous |
||
|
|||
18 | */ |
||
19 | 1 | public function __construct($invalidWeight, $maximumWeight, $code = 0, \Exception $previous = null) |
|
28 | } |
||
29 |
This check looks for
@param
annotations 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.