Skip to content

Commit 643e691

Browse files
authored
Merge pull request #95 from victormacko/master
Fix up issue for PHPStan (check if stamp is a SnsFifoStamp)
2 parents ec19912 + ef39ba6 commit 643e691

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Service/Sns/SnsTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function send(Envelope $envelope): Envelope
4141
if (str_contains($this->topic, ".fifo")) {
4242
$stamps = $envelope->all();
4343
$dedupeStamp = $stamps[SnsFifoStamp::class][0] ?? false;
44-
if (!$dedupeStamp) {
44+
if (!$dedupeStamp || $dedupeStamp instanceof SnsFifoStamp == false) {
4545
throw new Exception("SnsFifoStamp required for fifo topic");
4646
}
4747
$messageGroupId = $dedupeStamp->getMessageGroupId() ?? false;

0 commit comments

Comments
 (0)