Navigation Menu

Skip to content

Commit

Permalink
Fix invalid annotation for channel_id
Browse files Browse the repository at this point in the history
\PhpAmqpLib\Connection\AbstractConnection::channel() param $channel_id changed from `string` to `integer`.

Non-integer value is causing error:
```
Error on AMQP connection <0.390.0> (127.0.0.1:51356 -> 127.0.0.1:5672, vhost: '/', user: 'guest', state: running), channel 0:
operation channel.open caused a connection exception channel_error: "unexpected method in connection state running"
```
  • Loading branch information
smoq3 committed Jun 15, 2016
1 parent 38672da commit 8aa2589
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PhpAmqpLib/Connection/AbstractConnection.php
Expand Up @@ -593,7 +593,7 @@ protected function wait_channel($channel_id, $timeout = 0)
* Fetches a channel object identified by the numeric channel_id, or
* create that object if it doesn't already exist.
*
* @param string $channel_id
* @param integer $channel_id
* @return AMQPChannel
*/
public function channel($channel_id = null)
Expand Down

0 comments on commit 8aa2589

Please sign in to comment.