fix(amqp) add attribute type (#6904)

This commit is contained in:
IronSmith 2024-06-24 09:53:39 +08:00 committed by GitHub
parent 4db2fb95cd
commit d106eef471
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 5 deletions

View File

@ -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;

View File

@ -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
{