1 | <?php |
||
21 | class LoadLanguageData implements FixtureInterface, ContainerAwareInterface, OrderedFixtureInterface |
||
22 | { |
||
23 | /** |
||
24 | * System container. |
||
25 | * |
||
26 | * @var ContainerInterface |
||
27 | */ |
||
28 | private $container; |
||
29 | |||
30 | /** |
||
31 | * Entity manager. |
||
32 | * |
||
33 | * @var ObjectManager |
||
34 | */ |
||
35 | private $manager; |
||
36 | |||
37 | /** |
||
38 | * {@inheritDoc} |
||
39 | */ |
||
40 | 14 | public function setContainer(ContainerInterface $container = null) |
|
44 | |||
45 | /** |
||
46 | * {@inheritDoc} |
||
47 | */ |
||
48 | 14 | public function load(ObjectManager $manager) |
|
58 | |||
59 | 14 | private function addLanguage(String $title, String $abbr, Bool $default = false) |
|
68 | |||
69 | /** |
||
70 | * {@inheritdoc} |
||
71 | */ |
||
72 | 14 | public function getOrder() |
|
76 | } |
||
77 |
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: