Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b76242a

Browse files
Fix wrong exceptions in transports
The `setPriority` method have to throw a PriorityNotSupportedException if the feature is not supported.
1 parent 9d191ac commit b76242a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎PheanstalkProducer.php

Lines changed: 2 additions & 1 deletion
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
use Pheanstalk\Pheanstalk;
@@ -75,7 +76,7 @@ public function setPriority(int $priority = null): Producer
7576
return $this;
7677
}
7778

78-
throw new \LogicException('Not implemented');
79+
throw PriorityNotSupportedException::providerDoestNotSupportIt();
7980
}
8081

8182
public function getPriority(): ?int

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /