1 | <?php |
||
9 | class Utils |
||
10 | { |
||
11 | |||
12 | /** |
||
13 | * @param string $path |
||
14 | * @param string $separator |
||
|
|||
15 | * @return string |
||
16 | */ |
||
17 | public static function normalizePath($path) |
||
42 | |||
43 | |||
44 | /** |
||
45 | * Throw exception, trigger error or ignore according of action |
||
46 | * @param \Exception $e |
||
47 | * @param string $action |
||
48 | * @param bool $need |
||
49 | * @throws \Exception |
||
50 | */ |
||
51 | 1 | public static function throwError(\Exception $e, $action = 'exception', $need = TRUE) |
|
62 | |||
63 | } |
||
64 |
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.