Skip to content

Commit

Permalink
Merge pull request #13 from aligent/fix/null-comparison
Browse files Browse the repository at this point in the history
Fix: Compare $secret against null, not $null
  • Loading branch information
toddhainsworth authored Jun 20, 2023
2 parents 23be646 + 012ceb9 commit 2a73fe8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Service/EventBridgeNotifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ private function getEventBridgeClient()
$key = $this->config->getAWSKeyId();
$secret = $this->config->getAWSSecretKey();

if ($region === null || $key === null || $secret === $null) {
if ($region === null || $key === null || $secret === null) {
$this->eventBridgeClient = false;
} else {
$this->eventBridgeClient = new EventBridgeClient(
Expand Down

0 comments on commit 2a73fe8

Please sign in to comment.