mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-12-01 19:27:39 +08:00
fix(amqp) add attribute type (#6904)
This commit is contained in:
parent
4db2fb95cd
commit
d106eef471
@ -14,7 +14,7 @@ namespace Hyperf\Amqp\Message;
|
||||
|
||||
class DynamicRpcMessage extends RpcMessage
|
||||
{
|
||||
public function __construct(string $exchange, string $routingKey, $data)
|
||||
public function __construct(string $exchange, string $routingKey, mixed $data)
|
||||
{
|
||||
$this->exchange = $exchange;
|
||||
$this->routingKey = $routingKey;
|
||||
|
@ -20,10 +20,7 @@ abstract class RpcMessage extends Message implements RpcMessageInterface
|
||||
{
|
||||
protected string $queue = '';
|
||||
|
||||
/**
|
||||
* @var mixed
|
||||
*/
|
||||
protected $payload;
|
||||
protected mixed $payload;
|
||||
|
||||
public function getQueueBuilder(): QueueBuilder
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user