1 | <?php |
||
19 | class MakeDirectoryFailedException extends Exception |
||
20 | { |
||
21 | /** |
||
22 | * MakeDirectoryFailedException constructor. |
||
23 | * |
||
24 | * @param FileNodeInterface $file |
||
25 | * @param string $message |
||
26 | * @param Exception $previous |
||
|
|||
27 | */ |
||
28 | 1 | public function __construct(FileNodeInterface $file, $message = '', Exception $previous = null) |
|
34 | } |
||
35 |
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.