Skip to content

Commit

Permalink
Update Call Wrapper function
Browse files Browse the repository at this point in the history
Fixes #79, works in differents version of soap
  • Loading branch information
meirtin authored Jan 27, 2017
1 parent a70dccd commit f1a1494
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Artisaninweb/SoapWrapper/SoapWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ public function call($call, $data = [])
list($name, $function) = explode('.', $call);

return $this->client($name, function ($client) use ($function, $data) {
/** @var Client $client */
return $client->SoapCall($function, $data);
/** @var Client $client */
return $client->SoapCall($function, ($client->_soap_version == 1) ? [$data]:$data);
});
}

Expand Down

0 comments on commit f1a1494

Please sign in to comment.