Skip to content

Commit

Permalink
Merge pull request #35 from 200MPH/develop
Browse files Browse the repository at this point in the history
Fixes
  • Loading branch information
200MPH authored Jun 15, 2023
2 parents 62f7700 + 1070e3c commit ad72576
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/service/AbstractService.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ public function __construct($userId, $password)
*/
public function initXml()
{

$this->xml = new MyXMLWriter();
$this->xml->openMemory();
$this->xml->setIndent(true);
Expand Down
2 changes: 1 addition & 1 deletion src/service/ShippingService/ShippingService.php
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ private function buildActivitySection()
*
* @return Activity
*/
final private function getActivity()
private function getActivity()
{

if ($this->activity instanceof Activity) {
Expand Down
4 changes: 3 additions & 1 deletion src/service/ShippingService/entity/AbstractXml.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ public function __construct()
public function __destruct()
{

$this->xml->flush();
if($this->xml instanceof MyXMLWriter) {
$this->xml->flush();
}
}

/**
Expand Down

0 comments on commit ad72576

Please sign in to comment.