1 | <?php |
||
8 | class MakeDirectoryFailedException extends Exception |
||
9 | { |
||
10 | /** |
||
11 | * MakeDirectoryFailedException constructor. |
||
12 | * |
||
13 | * @param FileNodeInterface $file |
||
14 | * @param string $message |
||
15 | * @param Exception $previous |
||
|
|||
16 | */ |
||
17 | 1 | public function __construct(FileNodeInterface $file, $message = '', Exception $previous = null) |
|
23 | } |
||
24 |
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.