1 | <?php |
||
14 | class DefaultController extends Controller |
||
15 | { |
||
16 | /** |
||
17 | * @Route("/", name="homepage") |
||
18 | * @Template("@App/dashboard.html.twig") |
||
19 | */ |
||
20 | public function indexAction() |
||
31 | |||
32 | 6 | /** |
|
33 | 6 | * @Route("/schedule", name="calendar") |
|
34 | 6 | * @Template("@App/schedules.html.twig") |
|
35 | */ |
||
36 | public function calendarAction() |
||
40 | |||
41 | /** |
||
42 | * @Route("/login", name="login") |
||
43 | * |
||
44 | * @return array |
||
45 | * @Method({"GET", "POST"}) |
||
46 | * @Template("@App/login.html.twig") |
||
47 | */ |
||
48 | public function loginAction() |
||
59 | |||
60 | /** |
||
61 | 1 | * @param Request $request, string $token |
|
|
|||
62 | 1 | * @Route("/password_update/{token}", name="password_update") |
|
63 | * @Template("@App/User/update_password.html.twig") |
||
64 | 1 | * @Method({"GET", "POST"}) |
|
65 | * |
||
66 | * @return array |
||
67 | */ |
||
68 | public function updatePasswordAction(Request $request, $token) |
||
94 | } |
||
95 |
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.