Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Kdyby/RabbitMq/AmqpMember.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ abstract class AmqpMember extends Nette\Object
{

/**
* @var Connection
* @var IConnection
*/
protected $conn;

Expand Down Expand Up @@ -94,10 +94,10 @@ abstract class AmqpMember extends Nette\Object


/**
* @param Connection $conn
* @param IConnection $conn
* @param string $consumerTag
*/
public function __construct(Connection $conn, $consumerTag = null)
public function __construct(IConnection $conn, $consumerTag = null)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That would break the contact of the interface. Why is this needed?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{
$this->conn = $conn;
$this->consumerTag = empty($consumerTag) ? sprintf("PHPPROCESS_%s_%s", gethostname(), getmypid()) : $consumerTag;
Expand Down