Skip to content

Commit b52f0d2

Browse files
committed
[producer] do not throw exception if feature not implemented and null is set.
It applies to the case where the featuer is not supported too.
1 parent 65a6370 commit b52f0d2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

RedisProducer.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ public function send(PsrDestination $destination, PsrMessage $message)
4242
*/
4343
public function setDeliveryDelay($deliveryDelay)
4444
{
45+
if (null === $deliveryDelay) {
46+
return;
47+
}
48+
4549
throw new \LogicException('Not implemented');
4650
}
4751

@@ -58,6 +62,10 @@ public function getDeliveryDelay()
5862
*/
5963
public function setPriority($priority)
6064
{
65+
if (null === $priority) {
66+
return;
67+
}
68+
6169
throw new \LogicException('Not implemented');
6270
}
6371

@@ -74,6 +82,10 @@ public function getPriority()
7482
*/
7583
public function setTimeToLive($timeToLive)
7684
{
85+
if (null === $timeToLive) {
86+
return;
87+
}
88+
7789
throw new \LogicException('Not implemented');
7890
}
7991

0 commit comments

Comments
 (0)