| 1 | <?php | ||
| 16 | class StringHelper | ||
| 17 | { | ||
| 18 | /** | ||
| 19 | * converts to camel case. Shamefully stolen from | ||
| 20 | * @param $str | ||
| 21 | * @param array $noStrip | ||
|  | |||
| 22 | * @return mixed|string | ||
| 23 | */ | ||
| 24 | public static function noFirstCamelCase($str) | ||
| 30 | |||
| 31 | /** | ||
| 32 | * @param $str | ||
| 33 | * @return mixed|string | ||
| 34 | */ | ||
| 35 | public static function camelCase($str) | ||
| 44 | } | ||
| 45 | 
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
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.