File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
src/Bpost/Order/Box/Option Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments