1 | <?php |
||
11 | class BpostInvalidPatternException extends BpostLogicException |
||
12 | { |
||
13 | /** |
||
14 | * @param string $key |
||
15 | * @param string $invalidValue |
||
16 | * @param string $regexPattern |
||
17 | * @param int $code |
||
18 | * @param \Exception $previous |
||
|
|||
19 | */ |
||
20 | 4 | public function __construct($key, $invalidValue, $regexPattern, $code = 0, \Exception $previous = null) |
|
30 | } |
||
31 |
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.