Skip to content

Commit d8ac04f

Browse files
axoudevkouinkouin
authored andcommitted
fix : XML insurance type's namespace.
old namespace : 'common' new namespace : 'ns2'
1 parent b0d3b56 commit d8ac04f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Bpost/Order/Box/Option/Insured.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ public function toXML(DOMDocument $document, $prefix = 'common')
166166
*/
167167
public static function createFromXML(SimpleXMLElement $xml)
168168
{
169-
$insuranceDetail = $xml->children('common', true);
169+
$insuranceDetail = $xml->children('ns2', true);
170170

171171
$type = $insuranceDetail->getName();
172172
$value = $insuranceDetail->attributes()->value !== null ? (int) $insuranceDetail->attributes()->value : null;

0 commit comments

Comments
 (0)