| 1 | <?php |
||
| 15 | class Manager |
||
| 16 | { |
||
| 17 | use EventManagerAwareTrait; |
||
| 18 | |||
| 19 | const EVENT_GET_LISTS = 'getLists'; |
||
| 20 | const EVENT_REMOVE_ITEMS = 'removeItems'; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param User $user |
||
|
|
|||
| 24 | * @param Router $router |
||
| 25 | * @return ListInterface[] |
||
| 26 | */ |
||
| 27 | public function getLists() |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param User $user |
||
| 34 | * @param Router $router |
||
| 35 | * @return \Zend\EventManager\ResponseCollection |
||
| 36 | */ |
||
| 37 | public function removeItems(User $user) |
||
| 41 | } |
||
| 42 |
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.