1 | <?php |
||
8 | class Path |
||
9 | { |
||
10 | /** |
||
11 | * helper function to fix paths '//' or '/./' or '/foo/../' in a path. |
||
12 | * |
||
13 | * @param string $path Path to resolve |
||
14 | * |
||
15 | * @return string |
||
16 | */ |
||
17 | public static function fix($path) |
||
28 | |||
29 | /** |
||
30 | * Join several pieces into a path. |
||
31 | * |
||
32 | * @param string $piece1 |
||
|
|||
33 | * @param string $piece2 |
||
34 | * ... |
||
35 | * |
||
36 | * @return string |
||
37 | */ |
||
38 | public static function join() |
||
42 | } |
||
43 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.