Skip to content

Commit

Permalink
Support array for Hyperf\Amqp\Annotation\Consumer::routingKey. (#6788)
Browse files Browse the repository at this point in the history

Co-authored-by: 10966 <[email protected]>
  • Loading branch information
gaichao168 and 10966 authored May 24, 2024
1 parent f66439c commit e90b9c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Annotation/Consumer.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Consumer extends AbstractAnnotation
{
public function __construct(
public string $exchange = '',
public string $routingKey = '',
public array|string $routingKey = '',
public string $queue = '',
public string $name = 'Consumer',
public ?int $nums = null,
Expand Down
2 changes: 1 addition & 1 deletion src/Message/MessageInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function setExchange(string $exchange);

public function getExchange(): string;

public function setRoutingKey($routingKey);
public function setRoutingKey(array|string $routingKey);

public function getRoutingKey(): array|string;

Expand Down

0 comments on commit e90b9c7

Please sign in to comment.