1 | <?php |
||
12 | class RedirectAdminListController extends AdminListController |
||
13 | { |
||
14 | /** |
||
15 | * @var AdminListConfiguratorInterface |
||
16 | */ |
||
17 | private $configurator; |
||
18 | |||
19 | /** |
||
20 | * @return AdminListConfiguratorInterface |
||
21 | */ |
||
22 | public function getAdminListConfigurator() |
||
30 | |||
31 | /** |
||
32 | * The index action |
||
33 | * |
||
34 | * @Route("/", name="kunstmaanredirectbundle_admin_redirect") |
||
35 | */ |
||
36 | public function indexAction(Request $request) |
||
40 | |||
41 | /** |
||
42 | * The add action |
||
43 | * |
||
44 | * @Route("/add", name="kunstmaanredirectbundle_admin_redirect_add", methods={"GET", "POST"}) |
||
45 | * |
||
46 | * @return Response |
||
47 | */ |
||
48 | public function addAction(Request $request) |
||
52 | |||
53 | /** |
||
54 | * The edit action |
||
55 | * |
||
56 | * @param int $id |
||
57 | * |
||
58 | * @Route("/{id}", requirements={"id" = "\d+"}, name="kunstmaanredirectbundle_admin_redirect_edit", methods={"GET", "POST"}) |
||
59 | * |
||
60 | * @return Response |
||
61 | */ |
||
62 | public function editAction(Request $request, $id) |
||
66 | |||
67 | /** |
||
68 | * The delete action |
||
69 | * |
||
70 | * @param int $id |
||
71 | * |
||
72 | * @Route("/{id}/delete", requirements={"id" = "\d+"}, name="kunstmaanredirectbundle_admin_redirect_delete", methods={"GET", "POST"}) |
||
73 | * |
||
74 | * @return Response |
||
75 | */ |
||
76 | public function deleteAction(Request $request, $id) |
||
80 | |||
81 | /** |
||
82 | * The export action |
||
83 | * |
||
84 | * @param string $_format |
||
85 | * |
||
86 | * @Route("/export.{_format}", requirements={"_format" = "csv|xlsx|ods"}, name="kunstmaanredirectbundle_admin_redirect_export", methods={"GET", "POST"}) |
||
87 | * |
||
88 | * @return Response |
||
89 | */ |
||
90 | public function exportAction(Request $request, $_format) |
||
94 | } |
||
95 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: