Skip to content

Commit 90d99b6

Browse files
committed
gps
1 parent 262bc33 commit 90d99b6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/gps/GpsProducer.php

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use Google\Cloud\PubSub\Topic;
66
use Interop\Queue\DeliveryDelayNotSupportedException;
77
use Interop\Queue\InvalidDestinationException;
8+
use Interop\Queue\InvalidMessageException;
89
use Interop\Queue\PriorityNotSupportedException;
910
use Interop\Queue\PsrDestination;
1011
use Interop\Queue\PsrMessage;
@@ -32,6 +33,7 @@ public function __construct(GpsContext $context)
3233
public function send(PsrDestination $destination, PsrMessage $message)
3334
{
3435
InvalidDestinationException::assertDestinationInstanceOf($destination, GpsTopic::class);
36+
InvalidMessageException::assertMessageInstanceOf($message, GpsMessage::class);
3537

3638
/** @var Topic $topic */
3739
$topic = $this->context->getClient()->topic($destination->getTopicName());

0 commit comments

Comments
 (0)