Skip to content

Commit

Permalink
Fixed bug that the generator which be used to generate amqp consumer …
Browse files Browse the repository at this point in the history
…cannot work. (#6436)
  • Loading branch information
LTaooo committed Jan 4, 2024
1 parent f5ad7f9 commit a4b661d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Generator/stubs/amqp-consumer.stub
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use PhpAmqpLib\Message\AMQPMessage;
#[Consumer(exchange: 'hyperf', routingKey: 'hyperf', queue: 'hyperf', name: "%CLASS%", nums: 1)]
class %CLASS% extends ConsumerMessage
{
public function consumeMessage($data, AMQPMessage $message): string
public function consumeMessage($data, AMQPMessage $message): Result
{
return Result::ACK;
}
Expand Down

0 comments on commit a4b661d

Please sign in to comment.