1 | <?php |
||
5 | class Url |
||
6 | { |
||
7 | /** |
||
8 | * Appends params to the URL. |
||
9 | * |
||
10 | * @param string $path The URL path that will receive the params. |
||
|
|||
11 | * @param array $params The params to append to the URL. |
||
12 | * |
||
13 | * @return string |
||
14 | */ |
||
15 | 4 | public static function addParamsToUrl($url, array $params = []) |
|
22 | |||
23 | /** |
||
24 | * Check for a "/" prefix and prepend it if not exists. |
||
25 | * |
||
26 | * @param string|null $string |
||
27 | * |
||
28 | * @return string|null |
||
29 | */ |
||
30 | 5 | public static function slashPrefix($path) |
|
34 | } |
||
35 |
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.