1 | <?php |
||
17 | class Ini implements ParserInterface |
||
18 | { |
||
19 | /** |
||
20 | * {@inheritDoc} |
||
21 | * Parses an INI file as an array |
||
22 | * |
||
23 | * @throws ParseException If there is an error parsing the INI file |
||
24 | */ |
||
25 | 9 | public function parseFile($filename) |
|
30 | |||
31 | /** |
||
32 | * {@inheritDoc} |
||
33 | * Parses an INI string as an array |
||
34 | * |
||
35 | * @throws ParseException If there is an error parsing the INI string |
||
36 | */ |
||
37 | 9 | public function parseString($config) |
|
42 | |||
43 | /** |
||
44 | * Completes parsing of INI data |
||
45 | * |
||
46 | * @param array $data |
||
47 | * @param strring $filename |
||
48 | * |
||
49 | * @throws ParseException If there is an error parsing the INI data |
||
50 | */ |
||
51 | 12 | protected function parse($data = null, $filename = null) |
|
74 | |||
75 | /** |
||
76 | * Expand array with dotted keys to multidimensional array |
||
77 | * |
||
78 | * @param array $data |
||
79 | * |
||
80 | * @return array |
||
81 | */ |
||
82 | 3 | protected function expandDottedKey($data) |
|
100 | |||
101 | /** |
||
102 | * {@inheritDoc} |
||
103 | */ |
||
104 | 3 | public static function getSupportedExtensions() |
|
108 | } |
||
109 |
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: