| 1 | <?php |
||
| 17 | class FormPrepare extends AbstractHelper |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var RendererInterface |
||
| 21 | */ |
||
| 22 | private $renderer; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param RendererInterface $renderer |
||
| 26 | */ |
||
| 27 | public function __construct(RendererInterface $renderer) |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param string $formAlias |
||
| 34 | * @param \Zend\Form\FormInterface $form |
||
| 35 | * @param array $options |
||
| 36 | */ |
||
| 37 | public function __invoke($formAlias, FormInterface $form = null, array $options = []) |
||
| 41 | } |
||
| 42 |
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: