| 1 | <?php |
||
| 18 | final class NotFoundException extends NotFoundHttpException implements RestExceptionInterface |
||
| 19 | { |
||
| 20 | use RestExceptionTrait; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Constructor |
||
| 24 | * |
||
| 25 | * @param string $message Error message |
||
| 26 | * @param \Exception $prev Previous Exception |
||
|
|
|||
| 27 | */ |
||
| 28 | public function __construct($message = "Not Found", $prev = null) |
||
| 32 | } |
||
| 33 |
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.