Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Commit

Permalink
Fix parameter type
Browse files Browse the repository at this point in the history
  • Loading branch information
janlanger committed Nov 19, 2020
1 parent ff8268c commit 1e8e310
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SoapClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ public function OdeslaniTrzby(array $parameters)
* @param string $location
* @param string $action
* @param int $version
* @param int $oneWay
* @param bool|int $oneWay
* @return string|null
*/
public function __doRequest($request, $location, $action, $version, $oneWay = 0): ?string
{
$signedRequest = $this->cryptoService->addWSESignature($request);
$response = $this->clientDriver->send($signedRequest, $location, $action, $version);

if ($oneWay === 1) {
if ($oneWay) {
return null;
}
return $response;
Expand Down

0 comments on commit 1e8e310

Please sign in to comment.