We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 262bc33 commit 90d99b6Copy full SHA for 90d99b6
pkg/gps/GpsProducer.php
@@ -5,6 +5,7 @@
5
use Google\Cloud\PubSub\Topic;
6
use Interop\Queue\DeliveryDelayNotSupportedException;
7
use Interop\Queue\InvalidDestinationException;
8
+use Interop\Queue\InvalidMessageException;
9
use Interop\Queue\PriorityNotSupportedException;
10
use Interop\Queue\PsrDestination;
11
use Interop\Queue\PsrMessage;
@@ -32,6 +33,7 @@ public function __construct(GpsContext $context)
32
33
public function send(PsrDestination $destination, PsrMessage $message)
34
{
35
InvalidDestinationException::assertDestinationInstanceOf($destination, GpsTopic::class);
36
+ InvalidMessageException::assertMessageInstanceOf($message, GpsMessage::class);
37
38
/** @var Topic $topic */
39
$topic = $this->context->getClient()->topic($destination->getTopicName());
0 commit comments