-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Psalm issues #63
Fix Psalm issues #63
Conversation
WalkthroughThe recent update enhances the functionality of the Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review Status
Configuration used: CodeRabbit UI
Files selected for processing (2)
- src/Queue/AMQPCreateInfo.php (1 hunks)
- src/Queue/SQSCreateInfo.php (1 hunks)
Additional comments not posted (2)
src/Queue/SQSCreateInfo.php (1)
88-88
: The condition for includingmessage_group_id
in the result array is correctly updated to check for both null and non-empty string values. This is a good practice to ensure that only valid, meaningful values are included, aligning with the PR's objective of improving code quality by addressing issues identified by Psalm.However, consider adding a brief comment above this condition explaining why this check is necessary. This can improve code readability and maintainability, especially for future contributors who might not be familiar with the context of this change.
src/Queue/AMQPCreateInfo.php (1)
92-92
: The update to conditionally includeconsumer_id
in the result array only if it's not null and not an empty string is a solid improvement. It ensures that only valid identifiers are included, which is crucial for maintaining data integrity and preventing potential issues.As with the previous file, adding a comment explaining the rationale behind this condition could enhance the code's readability and maintainability. It helps future maintainers understand the purpose of this check without needing to trace back through the commit history or PR discussions.
Summary by CodeRabbit
consumer_id
andmessage_group_id
in queue creation to avoid issues with null or empty strings.