Skip to content

Commit dc59f95

Browse files
committed
[amqp-tools] Do not use deprecated classes.
1 parent 4fe3dd4 commit dc59f95

4 files changed

+11
-11
lines changed

pkg/amqp-tools/RabbitMqDelayPluginDelayStrategy.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use Interop\Amqp\AmqpQueue;
1111
use Interop\Amqp\AmqpTopic;
1212
use Interop\Amqp\Impl\AmqpBind;
13-
use Interop\Queue\InvalidDestinationException;
13+
use Interop\Queue\Exception\InvalidDestinationException;
1414

1515
class RabbitMqDelayPluginDelayStrategy implements DelayStrategy
1616
{

pkg/amqp-tools/RabbitMqDlxDelayStrategy.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use Interop\Amqp\AmqpMessage;
1010
use Interop\Amqp\AmqpQueue;
1111
use Interop\Amqp\AmqpTopic;
12-
use Interop\Queue\InvalidDestinationException;
12+
use Interop\Queue\Exception\InvalidDestinationException;
1313

1414
class RabbitMqDlxDelayStrategy implements DelayStrategy
1515
{

pkg/amqp-tools/Tests/RabbitMqDelayPluginDelayStrategyTest.php

+8-8
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
use Interop\Amqp\Impl\AmqpMessage;
1313
use Interop\Amqp\Impl\AmqpQueue;
1414
use Interop\Amqp\Impl\AmqpTopic;
15-
use Interop\Queue\InvalidDestinationException;
16-
use Interop\Queue\PsrDestination;
17-
use Interop\Queue\PsrMessage;
18-
use Interop\Queue\PsrProducer;
15+
use Interop\Queue\Destination;
16+
use Interop\Queue\Exception\InvalidDestinationException;
17+
use Interop\Queue\Message;
18+
use Interop\Queue\Producer;
1919
use PHPUnit\Framework\TestCase;
2020

2121
class RabbitMqDelayPluginDelayStrategyTest extends TestCase
@@ -188,27 +188,27 @@ public function delayMessage(AmqpContext $context, AmqpDestination $dest, \Inter
188188
{
189189
}
190190

191-
public function send(PsrDestination $destination, PsrMessage $message): void
191+
public function send(Destination $destination, Message $message): void
192192
{
193193
}
194194

195-
public function setDeliveryDelay(int $deliveryDelay = null): PsrProducer
195+
public function setDeliveryDelay(int $deliveryDelay = null): Producer
196196
{
197197
}
198198

199199
public function getDeliveryDelay(): ?int
200200
{
201201
}
202202

203-
public function setPriority(int $priority = null): PsrProducer
203+
public function setPriority(int $priority = null): Producer
204204
{
205205
}
206206

207207
public function getPriority(): ?int
208208
{
209209
}
210210

211-
public function setTimeToLive(int $timeToLive = null): PsrProducer
211+
public function setTimeToLive(int $timeToLive = null): Producer
212212
{
213213
}
214214

pkg/amqp-tools/Tests/RabbitMqDlxDelayStrategyTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use Interop\Amqp\Impl\AmqpMessage;
1212
use Interop\Amqp\Impl\AmqpQueue;
1313
use Interop\Amqp\Impl\AmqpTopic;
14-
use Interop\Queue\InvalidDestinationException;
14+
use Interop\Queue\Exception\InvalidDestinationException;
1515
use PHPUnit\Framework\TestCase;
1616

1717
class RabbitMqDlxDelayStrategyTest extends TestCase

0 commit comments

Comments
 (0)