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