1 | <?php |
||
13 | class PopupsAdminListController extends AdminListController |
||
14 | { |
||
15 | /** |
||
16 | * @var AdminListConfiguratorInterface |
||
17 | */ |
||
18 | private $configurator; |
||
19 | |||
20 | /** |
||
21 | * @return AdminListConfiguratorInterface |
||
22 | */ |
||
23 | public function getAdminListConfigurator($listAction = false) |
||
41 | |||
42 | /** |
||
43 | * The index action |
||
44 | * |
||
45 | * @Route("/", name="kunstmaanleadgenerationbundle_admin_popup_abstractpopup") |
||
46 | */ |
||
47 | public function indexAction(Request $request) |
||
51 | |||
52 | /** |
||
53 | * The delete action |
||
54 | * |
||
55 | * @param int $id |
||
56 | * |
||
57 | * @Route("/{id}/delete", requirements={"id" = "\d+"}, name="kunstmaanleadgenerationbundle_admin_popup_abstractpopup_delete", methods={"GET", "POST"}) |
||
58 | * |
||
59 | * @return array |
||
60 | */ |
||
61 | public function deleteAction(Request $request, $id) |
||
65 | |||
66 | /** |
||
67 | * The edit action |
||
68 | * |
||
69 | * @param int $id |
||
70 | * |
||
71 | * @Route("/{id}/edit", requirements={"id" = "\d+"}, name="kunstmaanleadgenerationbundle_admin_popup_abstractpopup_edit", methods={"GET", "POST"}) |
||
72 | * |
||
73 | * @return array |
||
74 | */ |
||
75 | public function editAction(Request $request, $id) |
||
79 | |||
80 | /** |
||
81 | * The add action |
||
82 | * |
||
83 | * @Route("/add", name="kunstmaanleadgenerationbundle_admin_popup_abstractpopup_add", methods={"GET", "POST"}) |
||
84 | * |
||
85 | * @return array |
||
86 | */ |
||
87 | public function addAction(Request $request) |
||
93 | } |
||
94 |
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.