Skip to content

Commit 70bb4f2

Browse files
committed
few targeted uses of "!isset()" in place of "null ==="
1 parent 5877d42 commit 70bb4f2

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/Catalog/GatewayService.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@ class GatewayService extends AbstractModel
9090
public function __construct(?array $data = [])
9191
{
9292
parent::__construct($data);
93-
if (null === $this->Gateway) {
93+
if (!isset($this->Gateway)) {
9494
$this->Gateway = new CompoundServiceName();
9595
}
96-
if (null === $this->Service) {
96+
if (!isset($this->Service)) {
9797
$this->Service = new CompoundServiceName();
9898
}
9999
}

src/RequestResponse.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public function buildQueryMeta(): QueryMeta
9898

9999
// if there was no response, return as-is
100100
// note: should never see this in the wild.
101-
if (null === $this->Response) {
101+
if (!isset($this->Response)) {
102102
return $qm;
103103
}
104104

tests/Usage/KV/KVClientCASTest.php

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ final class KVClientCASTest extends AbstractUsageTests
1616
public const KVOriginalValue = 'originalvalue';
1717
public const KVUpdatedValue = 'updatedvalue';
1818
public const KVUpdatedValue2 = 'updatedvalue2';
19+
1920
/** @var bool */
2021
protected static $singlePerClass = true;
2122

0 commit comments

Comments
 (0)