1 | <?php |
||
20 | class MakeDirectory |
||
21 | { |
||
22 | const VISIBILITY_PUBLIC = 'public'; |
||
23 | const VISIBILITY_PRIVATE = 'private'; |
||
24 | |||
25 | /** |
||
26 | * Create the directory specified by the $file if it does not exist |
||
27 | * |
||
28 | * @param FileNode $file |
||
29 | * @param string $visibility public or private visibility |
||
|
|||
30 | * |
||
31 | * @return LocalFile The original file inputted |
||
32 | * @throws MakeDirectoryFailedException |
||
33 | */ |
||
34 | 9 | public function makeDirectory(FileNode $file, $visibility = null) |
|
45 | } |
||
46 |
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.