Skip to content

Commit

Permalink
Fix Psalm issues (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
msmakouz authored Apr 2, 2024
1 parent 470c572 commit 4621491
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Queue/AMQPCreateInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public function toArray(): array
'redial_timeout' => $this->redialTimeout,
]);

if (!empty($this->consumerId)) {
if ($this->consumerId !== null && $this->consumerId !== '') {
$result['consumer_id'] = $this->consumerId;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Queue/SQSCreateInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function toArray(): array
if ($this->tags !== []) {
$result['tags'] = $this->tags;
}
if (!empty($this->messageGroupId)) {
if ($this->messageGroupId !== null && $this->messageGroupId !== '') {
$result['message_group_id'] = $this->messageGroupId;
}

Expand Down

0 comments on commit 4621491

Please sign in to comment.