Skip to content

Commit

Permalink
Fix broken PHP80 type
Browse files Browse the repository at this point in the history
  • Loading branch information
veewee committed Nov 12, 2021
1 parent 0e0990b commit 0c659f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/HttpBinding/SoapRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ final class SoapRequest
private string $location;
private string $action;
private int $version;
private int $oneWay;
private bool $oneWay;

public function __construct(string $request, string $location, string $action, int $version, int $oneWay = 0)
public function __construct(string $request, string $location, string $action, int $version, bool $oneWay = false)
{
$this->request = $request;
$this->location = $location;
Expand Down Expand Up @@ -52,7 +52,7 @@ public function isSOAP12(): bool
return $this->getVersion() === self::SOAP_1_2;
}

public function getOneWay(): int
public function getOneWay(): bool
{
return $this->oneWay;
}
Expand Down
4 changes: 2 additions & 2 deletions tests/Unit/HttpBinding/SoapRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ final class SoapRequestTest extends TestCase
{
public function test_request()
{
$request = new SoapRequest('requestbody', 'location', 'action', SoapRequest::SOAP_1_1, 0);
$request = new SoapRequest('requestbody', 'location', 'action', SoapRequest::SOAP_1_1, false);

static::assertSame('requestbody', $request->getRequest());
static::assertSame('location', $request->getLocation());
static::assertSame('action', $request->getAction());
static::assertSame(SoapRequest::SOAP_1_1, $request->getVersion());
static::assertSame(0, $request->getOneWay());
static::assertSame(false, $request->getOneWay());
}
}

0 comments on commit 0c659f1

Please sign in to comment.