Skip to content

Commit 175dd5b

Browse files
committed
fixup! refactor: xml namespaces are stoored ein php constants
1 parent ed4d511 commit 175dd5b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ public function __construct($type, $value = null)
138138
* Return the object as an array for usage in the XML
139139
*
140140
* @param DomDocument $document
141-
* @param string $prefix
142141
*
143142
* @return DomElement
144143
*
@@ -167,7 +166,7 @@ public function toXML(DOMDocument $document, $prefix = 'common')
167166
*/
168167
public static function createFromXML(SimpleXMLElement $xml)
169168
{
170-
$insuranceDetail = $xml->children(Bpost::NS_V3_COMMON);
169+
$insuranceDetail = $xml->children('common', true);
171170

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

0 commit comments

Comments
 (0)