| 1 | <?php |
||
| 11 | final class MappedEntityFormFactory |
||
| 12 | { |
||
| 13 | /** @var FormFactoryInterface */ |
||
| 14 | private $factory; |
||
| 15 | /** @var PropertyMapperInterface */ |
||
| 16 | private $mapper; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * MappedEntityFormFactory constructor. |
||
| 20 | * |
||
| 21 | * @param FormFactoryInterface $factory |
||
| 22 | * @param PropertyMapperInterface $mapper |
||
| 23 | */ |
||
| 24 | public function __construct(FormFactoryInterface $factory, PropertyMapperInterface $mapper) |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param $className |
||
| 32 | * |
||
| 33 | * @return FormInterface |
||
| 34 | * |
||
| 35 | * @throws EntityProcessingException |
||
| 36 | */ |
||
| 37 | public function createFormForClass($className) |
||
| 65 | } |
||
| 66 |
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: