| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | 14 | public function __construct($nameEntry, $invalidLength, $maximumLength, $code = 0, \Exception $previous = null) |
|
| 22 | { |
||
| 23 | 14 | $message = sprintf( |
|
| 24 | 14 | 'Invalid length for entry "%1$s" (%2$s characters), maximum is %3$s.', |
|
| 25 | 14 | $nameEntry, |
|
| 26 | 14 | $invalidLength, |
|
| 27 | $maximumLength |
||
| 28 | 14 | ); |
|
| 29 | 14 | parent::__construct($message, $code, $previous); |
|
| 30 | 14 | } |
|
| 31 | } |
||
| 32 |
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.