| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 29 | public function createService(ServiceLocatorInterface $serviceLocator) |
||
| 30 | { |
||
| 31 | /** @var ContainerInterface $serviceLocator */ |
||
| 32 | /** @var ManagerRegistry $managerRegistry */ |
||
| 33 | $managerRegistry = $serviceLocator->get(ManagerRegistry::class); |
||
| 34 | |||
| 35 | /** @var XmlBuilderInterface $dataContainerFromXmlBuilder */ |
||
| 36 | $dataContainerFromXmlBuilder = $serviceLocator->get(XmlBuilderInterface::class); |
||
| 37 | |||
| 38 | return new XmlDoctrineObjectConstructorSubscriber($managerRegistry, $dataContainerFromXmlBuilder, $serviceLocator); |
||
|
|
|||
| 39 | } |
||
| 40 | } |
||
| 41 |
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: