Skip to content

Conversation

@aneterial
Copy link
Contributor

based on issue #7546

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR changes the default value of the $pool parameter in the Kafka Consumer annotation from 'default' to an empty string, addressing issue #7546.

  • Modified the default pool parameter value in the Consumer annotation class

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment on lines 22 to +25
* @param string|string[] $topic
*/
public function __construct(
public string $pool = 'default',
public string $pool = '',
Copy link

Copilot AI Sep 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Setting an empty string as the default for $pool may cause issues if the consuming code expects a non-empty pool identifier. Consider adding validation or documentation to clarify how empty pool values should be handled by consumers of this annotation.

Copilot uses AI. Check for mistakes.
@limingxinleo limingxinleo merged commit e973a16 into hyperf:master Sep 26, 2025
71 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants