1 | <?php |
||
22 | class MassEditAction extends CreateAction |
||
23 | { |
||
24 | /** |
||
25 | * @var MassActionDispatcher |
||
26 | */ |
||
27 | protected $massActionDispatcher; |
||
28 | |||
29 | /** |
||
30 | * @var MassUpdater |
||
31 | */ |
||
32 | protected $massUpdater; |
||
33 | |||
34 | /** |
||
35 | * @param ActionFactory $actionFactory |
||
36 | * @param ActionEventManager $eventManager |
||
37 | * @param ManagerRegistry $manager |
||
38 | * @param RouterInterface $router |
||
39 | * @param TranslatorInterface $translator |
||
40 | * @param EngineInterface $templating |
||
41 | * @param FormFactoryInterface $formFactory |
||
42 | * @param MassActionDispatcher $massActionDispatcher |
||
43 | * @param MassUpdater $massUpdater |
||
44 | */ |
||
45 | public function __construct( |
||
61 | |||
62 | /** |
||
63 | * {@inheritdoc} |
||
64 | */ |
||
65 | public function getType() |
||
69 | |||
70 | /** |
||
71 | * {@inheritdoc} |
||
72 | */ |
||
73 | protected function saveForm(Request $request, FormInterface $form) |
||
81 | |||
82 | /** |
||
83 | * {@inheritdoc} |
||
84 | */ |
||
85 | protected function getTemplateVars(Request $request, FormInterface $form) |
||
98 | |||
99 | /** |
||
100 | * Returns an array containing the grid url parameters |
||
101 | * |
||
102 | * @param Request $request |
||
103 | * |
||
104 | * @return array |
||
105 | */ |
||
106 | protected function getGridUrlParameters(Request $request) |
||
115 | |||
116 | /** |
||
117 | * Returns the data of the form |
||
118 | * |
||
119 | * @param FormInterface $form |
||
120 | * |
||
121 | * @return array |
||
122 | */ |
||
123 | protected function getFormData(FormInterface $form) |
||
134 | |||
135 | /** |
||
136 | * {@inheritdoc} |
||
137 | */ |
||
138 | protected function setDefaultOptions(OptionsResolver $resolver) |
||
149 | } |
||
150 |
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: