1 | <?php |
||
28 | class AutoCompleteController extends Controller { |
||
29 | |||
30 | /** @var AutoCompleteService */ |
||
31 | private $service; |
||
32 | |||
33 | /** |
||
34 | * @param string $appName |
||
35 | * @param IRequest $request |
||
36 | * @param AutoCompleteService $service |
||
37 | * @param string $UserId |
||
|
|||
38 | */ |
||
39 | 1 | public function __construct($appName, IRequest $request, |
|
44 | |||
45 | /** |
||
46 | * @NoAdminRequired |
||
47 | * @param string $term |
||
48 | * @return array |
||
49 | */ |
||
50 | 1 | public function index($term) { |
|
53 | |||
54 | } |
||
55 |
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.