| 1 | <?php |
||
| 7 | class IndexController extends BaseController { |
||
| 8 | |||
| 9 | /** |
||
| 10 | * |
||
| 11 | * @var \Models\User\UserRepository $UserRepository |
||
| 12 | */ |
||
| 13 | protected $UserRepository; |
||
| 14 | |||
| 15 | protected $userListModule; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * IndexController, constructed by container |
||
| 19 | * |
||
| 20 | * @param Twig_Environment $twig |
||
|
|
|||
| 21 | */ |
||
| 22 | public function __construct( UserList $userListModule) { |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Return index page (/) |
||
| 29 | * |
||
| 30 | * @param array $args |
||
| 31 | * @return Response |
||
| 32 | */ |
||
| 33 | public function get($args) { |
||
| 38 | |||
| 39 | } |
||
| 40 |
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.