1 | <?php |
||
14 | final class HydrateProcedure implements HydratorInterface |
||
15 | { |
||
16 | const DEBUG_LABEL = 'Debug_Soap_Hydrat'; |
||
17 | |||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | private $tab; |
||
22 | /** |
||
23 | * @var HydratableInterface |
||
24 | */ |
||
25 | private $hydratable; |
||
26 | /** |
||
27 | * @var ClassMapper |
||
28 | */ |
||
29 | private $mapper; |
||
30 | |||
31 | /** |
||
32 | * Hydrat constructor. |
||
33 | * |
||
34 | * @param ClassMapper $mapper |
||
35 | * @param string|null $tab |
||
36 | */ |
||
37 | public function __construct(ClassMapper $mapper, string $tab = null) |
||
42 | |||
43 | /** |
||
44 | * @return HydratableInterface |
||
45 | */ |
||
46 | public function getHydratable(): HydratableInterface |
||
50 | |||
51 | /** |
||
52 | * @return bool |
||
53 | */ |
||
54 | public function isValid(): bool |
||
58 | |||
59 | /** |
||
60 | * @param Element $element |
||
61 | */ |
||
62 | public function hydrateElement(Element $element) |
||
68 | |||
69 | /** |
||
70 | * @param XmlElement $element |
||
71 | */ |
||
72 | public function hydrateXmlElement(XmlElement $element) |
||
78 | |||
79 | /** |
||
80 | * @param XmlNode $node |
||
81 | */ |
||
82 | public function hydrateXmlNode(XmlNode $node) |
||
89 | |||
90 | /** |
||
91 | * @param Element $element |
||
92 | */ |
||
93 | private function hydrate(Element $element) |
||
100 | |||
101 | /** |
||
102 | * @param Element $element |
||
103 | */ |
||
104 | private function hydrateAttributesOf(Element $element) |
||
116 | |||
117 | /** |
||
118 | * @param XmlNode $node |
||
119 | */ |
||
120 | private function hydrateChildrenOf(XmlNode $node) |
||
126 | |||
127 | /** |
||
128 | * @param Element $element |
||
129 | */ |
||
130 | private function hydrateChild(Element $element) |
||
143 | } |
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: