1 | <?php declare(strict_types = 1); |
||
19 | class XmlResolver implements ResolverInterface |
||
20 | { |
||
21 | /** @var CollectionClassResolver */ |
||
22 | protected $classResolver; |
||
23 | |||
24 | /** @var CollectionClassResolver */ |
||
25 | protected $propertyResolver; |
||
26 | |||
27 | /** |
||
28 | * AnnotationResolver constructor. |
||
29 | * |
||
30 | * @param CollectionClassResolver $classResolver |
||
31 | * @param CollectionPropertyResolver $propertyResolver |
||
32 | */ |
||
33 | 1 | public function __construct(CollectionClassResolver $classResolver, CollectionPropertyResolver $propertyResolver) |
|
39 | |||
40 | /** |
||
41 | * Resolve xml config |
||
42 | * |
||
43 | * @param string $xmlConfig |
||
44 | * @return array |
||
45 | */ |
||
46 | 1 | public function resolveConfig($xmlConfig) : array |
|
60 | |||
61 | /** |
||
62 | * {@inheritdoc} |
||
63 | */ |
||
64 | 1 | public function resolve($classArrayData, string $identifier = null) : ClassMetadata |
|
78 | |||
79 | /** |
||
80 | * function xml2array |
||
81 | * |
||
82 | * This function is part of the PHP manual. |
||
83 | * |
||
84 | * The PHP manual text and comments are covered by the Creative Commons |
||
85 | * Attribution 3.0 License, copyright (c) the PHP Documentation Group |
||
86 | * |
||
87 | * @author k dot antczak at livedata dot pl |
||
88 | * @date 2011-04-22 06:08 UTC |
||
89 | * @link http://www.php.net/manual/en/ref.simplexml.php#103617 |
||
90 | * @license http://www.php.net/license/index.php#doc-lic |
||
91 | * @license http://creativecommons.org/licenses/by/3.0/ |
||
92 | * @license CC-BY-3.0 <http://spdx.org/licenses/CC-BY-3.0> |
||
93 | */ |
||
94 | 1 | protected function xml2array($xmlObject, $out = array()) |
|
102 | } |
||
103 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..