1 | <?php |
||
26 | abstract class AbstractExtension |
||
27 | { |
||
28 | use IdentifierTrait; |
||
29 | |||
30 | /** |
||
31 | * @var Configuration |
||
32 | */ |
||
33 | private $config; |
||
34 | |||
35 | /** |
||
36 | * @var ConfigDefinitionInterface |
||
37 | */ |
||
38 | private $configDefinition; |
||
39 | |||
40 | /** |
||
41 | * @var ContainerBuilder |
||
42 | */ |
||
43 | private $container; |
||
44 | |||
45 | /** |
||
46 | * @var ResourceBuilder |
||
47 | */ |
||
48 | private $resource; |
||
49 | |||
50 | /** |
||
51 | * @var FileLoader |
||
52 | */ |
||
53 | private $loader; |
||
54 | |||
55 | /** |
||
56 | * Initialize extension. |
||
57 | * |
||
58 | * @param Configuration $config |
||
59 | * @param ContainerBuilder $container |
||
60 | */ |
||
61 | public function initialize(Configuration $config, ContainerBuilder $container) |
||
68 | |||
69 | /** |
||
70 | * @return ConfigDefinitionInterface|null |
||
71 | */ |
||
72 | final public function getConfigDefinition() |
||
87 | |||
88 | /** |
||
89 | * Set config definition. |
||
90 | * |
||
91 | * @param ConfigDefinitionInterface $configDefinition |
||
92 | */ |
||
93 | protected function setConfigDefinition(ConfigDefinitionInterface $configDefinition) |
||
97 | |||
98 | /** |
||
99 | * Parse config. |
||
100 | * |
||
101 | * @param array $configs |
||
102 | * |
||
103 | * @return array |
||
104 | */ |
||
105 | final public function processConfiguration(array $configs) |
||
109 | |||
110 | /** |
||
111 | * Get extension alias. |
||
112 | * |
||
113 | * @return string |
||
114 | */ |
||
115 | final public function getAlias() |
||
121 | |||
122 | /** |
||
123 | * Load extension. |
||
124 | * |
||
125 | * @param array $configs |
||
126 | * @param ContainerBuilder $container |
||
127 | */ |
||
128 | abstract public function load(array $configs, ContainerBuilder $container); |
||
129 | |||
130 | /** |
||
131 | * Prepend configuration. |
||
132 | * |
||
133 | * @param array $configs |
||
134 | */ |
||
135 | final protected function prependConfiguration(array $configs) |
||
139 | |||
140 | /** |
||
141 | * Load resource file. |
||
142 | * |
||
143 | * @param string $fileName |
||
144 | * |
||
145 | * @return array |
||
146 | */ |
||
147 | final protected function loadResource($fileName) |
||
164 | |||
165 | /** |
||
166 | * Get bundle path. |
||
167 | * |
||
168 | * @return string |
||
169 | */ |
||
170 | private function getBundlePath() |
||
181 | } |
||
182 |
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: