1 | <?php |
||
12 | class TagAdminListController extends AdminListController |
||
13 | { |
||
14 | /** |
||
15 | * @var AdminListConfiguratorInterface |
||
16 | */ |
||
17 | private $configurator; |
||
18 | |||
19 | /** |
||
20 | * @return AdminListConfiguratorInterface |
||
21 | */ |
||
22 | public function getAdminListConfigurator() |
||
30 | |||
31 | /** |
||
32 | * @Route("/", name="kunstmaantaggingbundle_admin_tag") |
||
33 | * @Template("KunstmaanAdminListBundle:Default:list.html.twig") |
||
34 | */ |
||
35 | public function indexAction(Request $request) |
||
39 | |||
40 | /** |
||
41 | * @Route("/add", name="kunstmaantaggingbundle_admin_tag_add", methods={"GET", "POST"}) |
||
42 | * @Template("KunstmaanAdminListBundle:Default:add.html.twig") |
||
43 | * |
||
44 | * @return array |
||
45 | */ |
||
46 | public function addAction(Request $request) |
||
50 | |||
51 | /** |
||
52 | * @Route("/{id}/edit", requirements={"id" = "\d+"}, name="kunstmaantaggingbundle_admin_tag_edit", methods={"GET", "POST"}) |
||
53 | * @Template("KunstmaanAdminListBundle:Default:edit.html.twig") |
||
54 | */ |
||
55 | public function editAction(Request $request, $id) |
||
59 | |||
60 | /** |
||
61 | * @Route("/{id}/delete", requirements={"id" = "\d+"}, name="kunstmaantaggingbundle_admin_tag_delete", methods={"GET", "POST"}) |
||
62 | * @Template("KunstmaanAdminListBundle:Default:delete.html.twig") |
||
63 | */ |
||
64 | public function deleteAction(Request $request, $id) |
||
68 | |||
69 | /** |
||
70 | * @Route("/autocomplete.{_format}", name="kunstmaantaggingbundle_admin_tag_autocomplete", defaults={"_format" = "json"}) |
||
71 | * @Template("@KunstmaanTagging/Tags/autocomplete.json.twig") |
||
72 | * |
||
73 | * @param \Symfony\Component\HttpFoundation\Request $request |
||
74 | * |
||
75 | * @return array |
||
76 | */ |
||
77 | public function autocompleteAction(Request $request) |
||
89 | } |
||
90 |
This check looks for parameters that are defined as one type in their type hint or doc comment but seem to be used as a narrower type, i.e an implementation of an interface or a subclass.
Consider changing the type of the parameter or doing an instanceof check before assuming your parameter is of the expected type.