Skip to content

Commit

Permalink
Fix Psalm issue
Browse files Browse the repository at this point in the history
  • Loading branch information
msmakouz committed Jul 14, 2024
1 parent af9965d commit 16fdac9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Queue/PubSubCreateInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function toArray(): array
'topic' => $this->topic,
]);

if (!empty($this->deadLetterTopic)) {
if ($this->deadLetterTopic !== null && $this->deadLetterTopic !== '') {
$result['dead_letter_topic'] = $this->deadLetterTopic;
$result['max_delivery_attempts'] = $this->maxDeliveryAttempts;
}
Expand Down

0 comments on commit 16fdac9

Please sign in to comment.