We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 226b054 commit e6c8fe0Copy full SHA for e6c8fe0
pkg/amqp-ext/AmqpContext.php
@@ -114,6 +114,8 @@ public function deleteQueue(PsrDestination $destination)
114
115
/**
116
* @param AmqpQueue|PsrDestination $destination
117
+ *
118
+ * @return int
119
*/
120
public function declareQueue(PsrDestination $destination)
121
{
@@ -127,11 +129,13 @@ public function declareQueue(PsrDestination $destination)
127
129
$extQueue->setName($destination->getQueueName());
128
130
}
131
- $extQueue->declareQueue();
132
+ $count = $extQueue->declareQueue();
133
134
if (false == $destination->getQueueName()) {
135
$destination->setQueueName($extQueue->getName());
136
137
+
138
+ return $count;
139
140
141
0 commit comments