Skip to content

Commit

Permalink
few targeted uses of "!isset()" in place of "null ==="
Browse files Browse the repository at this point in the history
  • Loading branch information
dcarbone committed Apr 28, 2021
1 parent 5877d42 commit 70bb4f2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Catalog/GatewayService.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ class GatewayService extends AbstractModel
public function __construct(?array $data = [])
{
parent::__construct($data);
if (null === $this->Gateway) {
if (!isset($this->Gateway)) {
$this->Gateway = new CompoundServiceName();
}
if (null === $this->Service) {
if (!isset($this->Service)) {
$this->Service = new CompoundServiceName();
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/RequestResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function buildQueryMeta(): QueryMeta

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

Expand Down
1 change: 1 addition & 0 deletions tests/Usage/KV/KVClientCASTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ final class KVClientCASTest extends AbstractUsageTests
public const KVOriginalValue = 'originalvalue';
public const KVUpdatedValue = 'updatedvalue';
public const KVUpdatedValue2 = 'updatedvalue2';

/** @var bool */
protected static $singlePerClass = true;

Expand Down

0 comments on commit 70bb4f2

Please sign in to comment.