| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | interface TmpInterface |
||
| 27 | { |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Set tmp path |
||
| 31 | * |
||
| 32 | * @param string $path |
||
|
|
|||
| 33 | */ |
||
| 34 | public function setTmp($path = false); |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Get tmp path |
||
| 38 | * |
||
| 39 | * @return string tmp path |
||
| 40 | */ |
||
| 41 | public function getTmp(); |
||
| 42 | |||
| 43 | /** |
||
| 44 | * * tempnam — Create file with unique file name |
||
| 45 | * |
||
| 46 | * @param string $dir |
||
| 47 | * @param string $prefix |
||
| 48 | * |
||
| 49 | * @return string tmpname |
||
| 50 | */ |
||
| 51 | public function tempnam($dir = false, $prefix = 'howi-fs-tmp-'); |
||
| 52 | |||
| 53 | /** |
||
| 54 | * tmpfile — Creates a temporary file |
||
| 55 | * |
||
| 56 | * @return filehandler |
||
| 57 | */ |
||
| 58 | public function tmpfile(); |
||
| 59 | } |
||
| 60 |
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.