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) |
|
31 | 6 | ||
32 | 3 | /** |
|
33 | 3 | * {@inheritDoc} |
|
34 | * Parses an XML string as an array |
||
35 | 3 | * |
|
36 | 3 | * @throws ParseException If there is an error parsing the XML string |
|
37 | 3 | */ |
|
38 | 3 | public function parseString($config) |
|
44 | 3 | ||
45 | /** |
||
46 | 3 | * Completes parsing of XML data |
|
47 | * |
||
48 | * @param array $data |
||
49 | * @param strring $filename |
||
50 | * |
||
51 | * @throws ParseException If there is an error parsing the XML data |
||
52 | 3 | */ |
|
53 | protected function parse($data = null, $filename = null) |
||
72 | |||
73 | /** |
||
74 | * {@inheritDoc} |
||
75 | */ |
||
76 | public static function getSupportedExtensions() |
||
80 | } |
||
81 |
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: