Skip to content

Commit e1bcc96

Browse files
committed
Fix wrong exceptions in transports
The `setPriority` method have to throw a PriorityNotSupportedException if the feature is not supported.
1 parent 4f37309 commit e1bcc96

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

GearmanProducer.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use Interop\Queue\Destination;
88
use Interop\Queue\Exception\InvalidDestinationException;
99
use Interop\Queue\Exception\InvalidMessageException;
10+
use Interop\Queue\Exception\PriorityNotSupportedException;
1011
use Interop\Queue\Message;
1112
use Interop\Queue\Producer;
1213

@@ -59,7 +60,7 @@ public function setPriority(int $priority = null): Producer
5960
return $this;
6061
}
6162

62-
throw new \LogicException('Not implemented');
63+
throw PriorityNotSupportedException::providerDoestNotSupportIt();
6364
}
6465

6566
public function getPriority(): ?int

0 commit comments

Comments
 (0)