1 | <?php |
||
13 | trait SerializerTrait |
||
14 | { |
||
15 | /** |
||
16 | * @var JMS\Serializer\Serializer |
||
17 | */ |
||
18 | private $serializer; |
||
19 | |||
20 | /** |
||
21 | * @return JMS\Serializer\Serializer |
||
22 | */ |
||
23 | public function getSerializer() |
||
32 | |||
33 | /** |
||
34 | * @return SimpleXMLElement |
||
35 | */ |
||
36 | public function xmlSerialize(SimpleXMLElement $xmlRoot = null) |
||
52 | } |
||
53 |
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..