| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function load(array $config, ContainerBuilder $container) |
||
| 19 | { |
||
| 20 | $config = $this->processConfiguration($this->getConfiguration([], $container), $config); |
||
|
|
|||
| 21 | $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
||
| 22 | |||
| 23 | $this->registerResources('lakion_cms', SyliusResourceBundle::DRIVER_DOCTRINE_PHPCR_ODM, $config['resources'], $container); |
||
| 24 | |||
| 25 | $loader->load('services.xml'); |
||
| 26 | |||
| 27 | $staticContentRepository = $container->getDefinition('lakion_cms.repository.static_content'); |
||
| 28 | $staticContentRepository->addArgument(new Parameter('cmf_content.persistence.phpcr.content_basepath')); |
||
| 29 | } |
||
| 30 | |||
| 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: