Skip to content

Commit

Permalink
Fix: Compare $secret against null, not $null
Browse files Browse the repository at this point in the history
  • Loading branch information
toddhainsworth committed Jun 20, 2023
1 parent 23be646 commit 012ceb9
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 012ceb9

Please sign in to comment.