1 | <?php |
||
9 | class MakeDirectory |
||
10 | { |
||
11 | const VISIBILITY_PUBLIC = 'public'; |
||
12 | const VISIBILITY_PRIVATE = 'private'; |
||
13 | |||
14 | /** |
||
15 | * Create the directory specified by the $file if it does not exist |
||
16 | * |
||
17 | * @param FileNode $file |
||
18 | * @param string $visibility public or private visibility |
||
|
|||
19 | * |
||
20 | * @return LocalFile The original file inputted |
||
21 | * @throws MakeDirectoryFailedException |
||
22 | */ |
||
23 | 9 | public function makeDirectory(FileNode $file, $visibility = 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.