Skip to content

Allow to call QueueProvideer::withChannelName()#116

Closed
viktorprogger wants to merge 4 commits into
masterfrom
fix-queue-provider-with-channel-name-creation
Closed

Allow to call QueueProvideer::withChannelName()#116
viktorprogger wants to merge 4 commits into
masterfrom
fix-queue-provider-with-channel-name-creation

Conversation

@viktorprogger
Copy link
Copy Markdown
Contributor

Q A
Is bugfix? ✔️
New feature?
Breaks BC?
Fixed issues #115

@viktorprogger viktorprogger self-assigned this May 4, 2025
…with-channel-name-creation

# Conflicts:
#	src/Exception/ExchangeDeclaredException.php
Comment thread src/QueueProvider.php
$this->channel->exchange_declare(...$this->exchangeSettings->getPositionalSettings());
$this->channel->queue_bind($this->queueSettings->getName(), $this->exchangeSettings->getName());
}
$this->channel->exchange_declare(...$this->exchangeSettings->getPositionalSettings());
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.

$this->exchangeSettings can be null, so an error may occur in this line. Refactor class to exclude case when private ?AMQPChannel $channel = null; may be null.

@viktorprogger
Copy link
Copy Markdown
Contributor Author

Not needed anymore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants