1 | <?php |
||
15 | class QuickCreateAction extends CreateAction |
||
16 | { |
||
17 | /** |
||
18 | * @param Request $request |
||
19 | * |
||
20 | * @return \Symfony\Component\HttpFoundation\RedirectResponse|Response |
||
21 | */ |
||
22 | public function doExecute(Request $request) |
||
30 | |||
31 | /** |
||
32 | * {@inheritdoc} |
||
33 | */ |
||
34 | protected function getRedirectResponse($object) |
||
43 | |||
44 | /** |
||
45 | * {@inheritdoc} |
||
46 | */ |
||
47 | protected function setDefaultOptions(OptionsResolver $resolver) |
||
53 | } |
||
54 |
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: