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