Skip to content

Commit 375231c

Browse files
committed
gps
1 parent 2600fe4 commit 375231c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎pkg/gps/GpsProducer.php‎

Lines changed: 2 additions & 0 deletions
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)