Skip to content

fix the error "Class "FriendsOfHyperf\Support\RedisCommand" not found "#876

Merged
huangdijia merged 1 commit intofriendsofhyperf:mainfrom
rookiexxk:main
Jul 16, 2025
Merged

fix the error "Class "FriendsOfHyperf\Support\RedisCommand" not found "#876
huangdijia merged 1 commit intofriendsofhyperf:mainfrom
rookiexxk:main

Conversation

@rookiexxk
Copy link
Copy Markdown
Contributor

@rookiexxk rookiexxk commented Jul 16, 2025

fix the error "Class "FriendsOfHyperf\Support\RedisCommand" not found "

Summary by CodeRabbit

  • 杂项
    • 更新依赖,新增对 "friendsofhyperf/support" (~3.1.61) 的支持。

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Jul 16, 2025

Walkthrough

本次更改在 src/sentry/composer.json 文件的 require 部分新增了对 "friendsofhyperf/support": "~3.1.61" 包的依赖。未对其他依赖项或配置进行修改。

Changes

文件/分组 变更摘要
src/sentry/composer.json require 中新增 "friendsofhyperf/support": "~3.1.61" 依赖

Poem

兔子跳跃,依赖添新,
composer 文件里,名字更清新。
友好支持,版本锁定,
代码世界,协作共进。
🐇✨


📜 Recent review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 0cb04db and 43bfa38.

📒 Files selected for processing (1)
  • src/sentry/composer.json (1 hunks)
🔇 Additional comments (2)
src/sentry/composer.json (2)

24-37: 新增 friendsofhyperf/support 依赖可有效补齐缺失类

此次引入的 "friendsofhyperf/support": "~3.1.61" 能解决 FriendsOfHyperf\Support\RedisCommand 找不到的问题,版本号也与组件主线 3.1.x 保持一致,没有明显的兼容风险。


24-37: 确认与 hyperf/support 共存的潜在冲突

hyperf/support(命名空间 Hyperf\Support)依旧存在,理论上与 FriendsOfHyperf\Support 互不覆盖。但两个包都向外暴露 util/宏类,仍可能产生符号或服务提供者冲突。建议:

  1. composer update 后执行完整测试套件;
  2. 留意容器中是否出现重复绑定或覆盖提示。

若需要进一步验证,可告知,我可提供脚本扫描同名类/函数。


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

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 using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@huangdijia huangdijia merged commit 4eb202d into friendsofhyperf:main Jul 16, 2025
6 of 8 checks passed
huangdijia pushed a commit that referenced this pull request Jul 16, 2025
… " (#876)

Co-authored-by: xiexuekun <xiexuekun@addcn.com>
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