| 1 | <?php |
||
| 19 | class AutoCompleteController extends Controller { |
||
| 20 | |||
| 21 | /** @var AutoCompleteService */ |
||
| 22 | private $service; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param string $appName |
||
| 26 | * @param IRequest $request |
||
| 27 | * @param AutoCompleteService $service |
||
| 28 | * @param string $UserId |
||
|
|
|||
| 29 | */ |
||
| 30 | 1 | public function __construct($appName, IRequest $request, |
|
| 35 | |||
| 36 | /** |
||
| 37 | * @NoAdminRequired |
||
| 38 | * @param string $term |
||
| 39 | * @return array |
||
| 40 | */ |
||
| 41 | 1 | public function index($term) { |
|
| 44 | |||
| 45 | } |
||
| 46 |
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.