@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | } |
103 | 103 | |
104 | 104 | /** |
105 | - * @param ConfigurationRepository|null $config |
|
105 | + * @param null|ConfigInterface $config |
|
106 | 106 | * @return ConfigurationRepository |
107 | 107 | * @throws InvalidConfigurationLocationException |
108 | 108 | * @throws InvalidFileException |
@@ -159,6 +159,9 @@ discard block |
||
159 | 159 | return $structure; |
160 | 160 | } |
161 | 161 | |
162 | + /** |
|
163 | + * @param string $callbackString |
|
164 | + */ |
|
162 | 165 | protected function executeCallback($callbackString, $value) |
163 | 166 | { |
164 | 167 | if (function_exists($callbackString)) { |
@@ -199,7 +202,7 @@ discard block |
||
199 | 202 | |
200 | 203 | /** |
201 | 204 | * @param \SimpleXMLElement $structure The object representing the merged configuration structure |
202 | - * @param \SimpleXmlElement $config An empty config object to be populated |
|
205 | + * @param ConfigInterface $config An empty config object to be populated |
|
203 | 206 | * @param string $context The name of the context |
204 | 207 | * @return ConfigurationRepository The resulting configuration object |
205 | 208 | */ |
@@ -5,7 +5,7 @@ |
||
5 | 5 | interface ConfigInterface |
6 | 6 | { |
7 | 7 | |
8 | - const ALLOWED_TRUES = [ |
|
8 | + const ALLOWED_TRUES = [ |
|
9 | 9 | true, 'true', 1, '1', 'on', 'yes' |
10 | 10 | ]; |
11 | 11 |