1 | <?php |
||
12 | class DefaultController extends Controller |
||
13 | { |
||
14 | /** |
||
15 | * @Route("/", name="homepage") |
||
16 | * @Template("@App/dashboard.html.twig") |
||
17 | */ |
||
18 | public function indexAction() |
||
22 | |||
23 | /** |
||
24 | * @Route("/login", name="login") |
||
25 | * |
||
26 | * @return array |
||
27 | * @Method({"GET", "POST"}) |
||
28 | * @Template("@App/login.html.twig") |
||
29 | */ |
||
30 | 6 | public function loginAction() |
|
41 | |||
42 | /** |
||
43 | * @param Request $request, string $token |
||
|
|||
44 | * @Route("/password_update/{token}", name="password_update") |
||
45 | * @Template("@App/User/update_password.html.twig") |
||
46 | * @Method({"GET", "POST"}) |
||
47 | * |
||
48 | * @return array |
||
49 | */ |
||
50 | 1 | public function updatePasswordAction(Request $request, $token) |
|
76 | } |
||
77 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function. It has, however, found a similar but not annotated parameter which might be a good fit.
Consider the following example. The parameter
$ireland
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was changed, but the annotation was not.