1 | <?php |
||
17 | class Xml implements ParserInterface |
||
18 | { |
||
19 | /** |
||
20 | * {@inheritDoc} |
||
21 | * Parses an XML file as an array |
||
22 | * |
||
23 | * @throws ParseException If there is an error parsing the XML file |
||
24 | */ |
||
25 | 6 | public function parseFile($filename) |
|
33 | |||
34 | /** |
||
35 | * {@inheritDoc} |
||
36 | * Parses an XML string as an array |
||
37 | * |
||
38 | * @throws ParseException If there is an error parsing the XML string |
||
39 | */ |
||
40 | 3 | public function parseString($config) |
|
48 | |||
49 | /** |
||
50 | * Completes parsing of XML data |
||
51 | * |
||
52 | * @param array $data |
||
53 | * @param string $filename |
||
54 | * |
||
55 | * @return array|null |
||
56 | * @throws ParseException If there is an error parsing the XML data |
||
57 | */ |
||
58 | 6 | protected function parse($data = null, $filename = null) |
|
77 | |||
78 | /** |
||
79 | * {@inheritDoc} |
||
80 | */ |
||
81 | 3 | public static function getSupportedExtensions() |
|
85 | } |
||
86 |
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: