1 | <?php |
||
5 | class FileNotFoundException extends \InvalidArgumentException implements ExceptionInterface |
||
6 | { |
||
7 | /** |
||
8 | * @param string $message Exception message to throw |
||
9 | * @param int $code Exception code |
||
10 | * @param Exception $previous previous exception used for the exception chaining |
||
|
|||
11 | */ |
||
12 | public function __construct($message = 'The file does not exists.', $code = 0, \Exception $previous = null) |
||
16 | } |
||
17 |
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.