Merge pull request #196 from zcmzc/patch-1

Fixed typo
This commit is contained in:
黄朝晖 2019-07-12 16:26:02 +08:00 committed by GitHub
commit 9100c09e0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,7 +92,7 @@ class Consumer extends Builder
public function declare(MessageInterface $message, ?AMQPChannel $channel = null): void
{
if (! $message instanceof ConsumerMessageInterface) {
throw new MessageException('Message must instanceof ' . ConsumerInterface::class);
throw new MessageException('Message must instanceof ' . ConsumerMessageInterface::class);
}
if (! $channel) {