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 | public function parseFile($filename) |
||
30 | |||
31 | 12 | /** |
|
32 | 6 | * {@inheritDoc} |
|
33 | * Parses an INI string as an array |
||
34 | * |
||
35 | 6 | * @throws ParseException If there is an error parsing the INI string |
|
36 | 3 | */ |
|
37 | 1 | public function parseString($config) |
|
42 | |||
43 | 6 | /** |
|
44 | 4 | * Completes parsing of INI data |
|
45 | * |
||
46 | * @param array $data |
||
47 | 6 | * @param strring $filename |
|
48 | * |
||
49 | * @throws ParseException If there is an error parsing the INI data |
||
50 | 6 | */ |
|
51 | protected function parse($data = null, $filename = null) |
||
74 | 1 | ||
75 | 1 | /** |
|
76 | 3 | * 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 | 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: