chore(deps): 更新 psy/psysh 依赖并配置手动更新检查#1073
Conversation
- 将 psy/psysh 依赖版本从 "^0.11.0 || ^0.12.0" 更新为 "^0.12.0" - 添加 ManualUpdaterChecker 命名空间导入 - 配置 tinker 命令禁用手动更新检查功能
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
Walkthrough本次修改收窄了 ChangesTinker Psysh 更新
文档本地化调整
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 PHPStan (2.2.2)PHPStan was skipped because the config uses disallowed 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. Comment |
|
留个联系方式? |
There was a problem hiding this comment.
Actionable comments posted: 4
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs/zh-hk/components/model-factory.md`:
- Around line 92-100: The return-value description for the factory helper is
inconsistent: it says the helper returns Hyperf\Database\Model\FactoryBuilder,
but later mentions factory() may return null when the container is unavailable.
Update the wording in the model-factory docs so the main return type explicitly
includes null, or fold the null case into the first sentence, and keep the rest
of the behavior notes aligned with factory(), make(), create(), and raw().
In `@docs/zh-hk/components/model-observer.md`:
- Around line 66-71: The two example comments in the observer docs use
simplified Chinese wording, which is inconsistent with the zh-HK page. Update
the comment text around the User observer examples so both the `creating` and
`created` annotations use traditional Chinese characters, keeping the phrasing
aligned with the rest of the localized documentation.
In `@docs/zh-hk/components/mysql-grammar-addon.md`:
- Around line 41-46: The example in the MySQL grammar addon docs mixes
Simplified and Traditional Chinese; update the `@property` comment text in the
zh-HK sample to use Traditional Chinese consistently. Fix the `user_id`
description in the markdown snippet so it matches the rest of the document’s
locale, and keep the same style throughout the example.
In `@docs/zh-tw/guide/index.md`:
- Around line 26-27: The phrase in the guide text contains a typo: “大多陣列件”
should be corrected to “大多數元件” in the documentation content. Update the wording
in the affected paragraph so the surrounding explanation about Hyperf component
discovery and config publishing remains unchanged, and verify the text in the
translated guide reads naturally with the corrected term.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 9c0a281c-8381-424c-8a4f-19b404d06e92
📒 Files selected for processing (86)
docs/zh-hk/components/amqp-job.mddocs/zh-hk/components/cache.mddocs/zh-hk/components/co-phpunit.mddocs/zh-hk/components/command-benchmark.mddocs/zh-hk/components/command-signals.mddocs/zh-hk/components/command-validation.mddocs/zh-hk/components/compoships.mddocs/zh-hk/components/confd.mddocs/zh-hk/components/config-consul.mddocs/zh-hk/components/console-spinner.mddocs/zh-hk/components/elasticsearch.mddocs/zh-hk/components/encryption.mddocs/zh-hk/components/exception-event.mddocs/zh-hk/components/facade.mddocs/zh-hk/components/fast-paginate.mddocs/zh-hk/components/grpc-validation.mddocs/zh-hk/components/helpers.mddocs/zh-hk/components/http-client.mddocs/zh-hk/components/ide-helper.mddocs/zh-hk/components/index.mddocs/zh-hk/components/ipc-broadcaster.mddocs/zh-hk/components/lock.mddocs/zh-hk/components/macros.mddocs/zh-hk/components/mail.mddocs/zh-hk/components/model-factory.mddocs/zh-hk/components/model-hashids.mddocs/zh-hk/components/model-morph-addon.mddocs/zh-hk/components/model-observer.mddocs/zh-hk/components/model-scope.mddocs/zh-hk/components/mysql-grammar-addon.mddocs/zh-hk/components/notification-easysms.mddocs/zh-hk/components/notification-mail.mddocs/zh-hk/components/oauth2-server.mddocs/zh-hk/components/openai-client.mddocs/zh-hk/components/recaptcha.mddocs/zh-hk/components/sentry.mddocs/zh-hk/components/support.mddocs/zh-hk/components/validated-dto.mddocs/zh-hk/faq/about.mddocs/zh-hk/faq/how-to-use.mddocs/zh-hk/faq/index.mddocs/zh-hk/guide/index.mddocs/zh-hk/guide/introduce/about.mddocs/zh-tw/components/amqp-job.mddocs/zh-tw/components/cache.mddocs/zh-tw/components/co-phpunit.mddocs/zh-tw/components/command-benchmark.mddocs/zh-tw/components/command-signals.mddocs/zh-tw/components/command-validation.mddocs/zh-tw/components/compoships.mddocs/zh-tw/components/confd.mddocs/zh-tw/components/config-consul.mddocs/zh-tw/components/console-spinner.mddocs/zh-tw/components/elasticsearch.mddocs/zh-tw/components/encryption.mddocs/zh-tw/components/exception-event.mddocs/zh-tw/components/facade.mddocs/zh-tw/components/fast-paginate.mddocs/zh-tw/components/grpc-validation.mddocs/zh-tw/components/helpers.mddocs/zh-tw/components/http-client.mddocs/zh-tw/components/ide-helper.mddocs/zh-tw/components/index.mddocs/zh-tw/components/ipc-broadcaster.mddocs/zh-tw/components/lock.mddocs/zh-tw/components/macros.mddocs/zh-tw/components/mail.mddocs/zh-tw/components/model-factory.mddocs/zh-tw/components/model-hashids.mddocs/zh-tw/components/model-morph-addon.mddocs/zh-tw/components/model-observer.mddocs/zh-tw/components/model-scope.mddocs/zh-tw/components/mysql-grammar-addon.mddocs/zh-tw/components/notification-easysms.mddocs/zh-tw/components/notification-mail.mddocs/zh-tw/components/oauth2-server.mddocs/zh-tw/components/openai-client.mddocs/zh-tw/components/recaptcha.mddocs/zh-tw/components/sentry.mddocs/zh-tw/components/support.mddocs/zh-tw/components/validated-dto.mddocs/zh-tw/faq/about.mddocs/zh-tw/faq/how-to-use.mddocs/zh-tw/faq/index.mddocs/zh-tw/guide/index.mddocs/zh-tw/guide/introduce/about.md
✅ Files skipped from review due to trivial changes (55)
- docs/zh-hk/components/notification-mail.md
- docs/zh-tw/components/validated-dto.md
- docs/zh-hk/components/validated-dto.md
- docs/zh-tw/faq/how-to-use.md
- docs/zh-tw/components/notification-mail.md
- docs/zh-tw/components/mail.md
- docs/zh-hk/components/recaptcha.md
- docs/zh-tw/components/helpers.md
- docs/zh-tw/faq/index.md
- docs/zh-hk/faq/how-to-use.md
- docs/zh-hk/components/helpers.md
- docs/zh-hk/components/model-morph-addon.md
- docs/zh-tw/components/model-hashids.md
- docs/zh-tw/components/facade.md
- docs/zh-hk/components/command-benchmark.md
- docs/zh-hk/components/ide-helper.md
- docs/zh-tw/components/model-scope.md
- docs/zh-hk/components/model-hashids.md
- docs/zh-hk/components/command-signals.md
- docs/zh-tw/components/model-morph-addon.md
- docs/zh-hk/components/notification-easysms.md
- docs/zh-tw/components/oauth2-server.md
- docs/zh-tw/components/notification-easysms.md
- docs/zh-hk/components/encryption.md
- docs/zh-hk/components/openai-client.md
- docs/zh-hk/components/elasticsearch.md
- docs/zh-hk/components/model-scope.md
- docs/zh-hk/components/index.md
- docs/zh-tw/components/command-validation.md
- docs/zh-tw/components/model-factory.md
- docs/zh-hk/components/confd.md
- docs/zh-tw/components/ipc-broadcaster.md
- docs/zh-hk/components/lock.md
- docs/zh-tw/components/encryption.md
- docs/zh-hk/components/mail.md
- docs/zh-tw/components/command-signals.md
- docs/zh-hk/components/cache.md
- docs/zh-tw/components/grpc-validation.md
- docs/zh-hk/components/compoships.md
- docs/zh-tw/components/confd.md
- docs/zh-hk/components/sentry.md
- docs/zh-hk/components/grpc-validation.md
- docs/zh-tw/components/command-benchmark.md
- docs/zh-hk/components/amqp-job.md
- docs/zh-tw/components/cache.md
- docs/zh-tw/components/index.md
- docs/zh-hk/components/ipc-broadcaster.md
- docs/zh-tw/components/lock.md
- docs/zh-tw/components/elasticsearch.md
- docs/zh-tw/components/compoships.md
- docs/zh-hk/components/http-client.md
- docs/zh-hk/components/oauth2-server.md
- docs/zh-tw/components/model-observer.md
- docs/zh-tw/components/sentry.md
- docs/zh-tw/components/http-client.md
| 輔助函數返回 `Hyperf\Database\Model\FactoryBuilder`。常用的終止方法包括: | ||
|
|
||
| - `make()`:建構模型但不持久化。 | ||
| - `create()`:建構並持久化模型。 | ||
| - `raw()`:傳回產生的屬性陣列。 | ||
| - `make()`:構建模型但不持久化。 | ||
| - `create()`:構建並持久化模型。 | ||
| - `raw()`:返回生成的屬性數組。 | ||
|
|
||
| 未指定數量時,這些方法傳回單個結果;指定數量時,傳回模型集合或原始屬性陣列清單。 | ||
| 傳給這些方法的屬性陣列會覆蓋產生的值。如果應用程式容器不可用, | ||
| `factory()` 傳回 `null`。 | ||
| 未指定數量時,這些方法返回單個結果;指定數量時,返回模型集合或原始屬性數組列表。 | ||
| 傳給這些方法的屬性數組會覆蓋生成的值。如果應用容器不可用, | ||
| `factory()` 返回 `null`。 |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
统一返回值说明。
这里先写成只返回 Hyperf\Database\Model\FactoryBuilder,但后面又说容器不可用时会返回 null,前后不一致。建议改成 FactoryBuilder|null,或把 null 的例外直接并入首句。
♻️ 建议修正
-辅助函数返回 `Hyperf\Database\Model\FactoryBuilder`。常用的终止方法包括:
+辅助函数通常返回 `Hyperf\Database\Model\FactoryBuilder`;如果应用容器不可用,则返回 `null`。常用的终止方法包括:📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| 輔助函數返回 `Hyperf\Database\Model\FactoryBuilder`。常用的終止方法包括: | |
| - `make()`:建構模型但不持久化。 | |
| - `create()`:建構並持久化模型。 | |
| - `raw()`:傳回產生的屬性陣列。 | |
| - `make()`:構建模型但不持久化。 | |
| - `create()`:構建並持久化模型。 | |
| - `raw()`:返回生成的屬性數組。 | |
| 未指定數量時,這些方法傳回單個結果;指定數量時,傳回模型集合或原始屬性陣列清單。 | |
| 傳給這些方法的屬性陣列會覆蓋產生的值。如果應用程式容器不可用, | |
| `factory()` 傳回 `null`。 | |
| 未指定數量時,這些方法返回單個結果;指定數量時,返回模型集合或原始屬性數組列表。 | |
| 傳給這些方法的屬性數組會覆蓋生成的值。如果應用容器不可用, | |
| `factory()` 返回 `null`。 | |
| 輔助函數通常返回 `Hyperf\Database\Model\FactoryBuilder`;如果應用容器不可用,則返回 | |
| `null`。常用的終止方法包括: | |
| - `make()`:構建模型但不持久化。 | |
| - `create()`:構建並持久化模型。 | |
| - `raw()`:返回生成的屬性數組。 | |
| 未指定數量時,這些方法返回單個結果;指定數量時,返回模型集合或原始屬性數組列表。 | |
| 傳給這些方法的屬性數組會覆蓋生成的值。如果應用容器不可用, | |
| `factory()` 返回 `null`。 |
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@docs/zh-hk/components/model-factory.md` around lines 92 - 100, The
return-value description for the factory helper is inconsistent: it says the
helper returns Hyperf\Database\Model\FactoryBuilder, but later mentions
factory() may return null when the container is unavailable. Update the wording
in the model-factory docs so the main return type explicitly includes null, or
fold the null case into the first sentence, and keep the rest of the behavior
notes aligned with factory(), make(), create(), and raw().
| // 創建用户前執行。 | ||
| } | ||
|
|
||
| public function created(User $model): void | ||
| { | ||
| // 建立用戶後執行。 | ||
| // 創建用户後執行。 |
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
统一这两个示例注释的字形。
用户 是简体写法,和整页的 zh-HK 文案不一致;这里是直接展示给读者的示例,建议改成繁体用字。
🛠️ 建议修改
- // 创建用户前执行。
+ // 創建用戶前執行。
@@
- // 创建用户后执行。
+ // 創建用戶後執行。📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| // 創建用户前執行。 | |
| } | |
| public function created(User $model): void | |
| { | |
| // 建立用戶後執行。 | |
| // 創建用户後執行。 | |
| // 創建用戶前執行。 | |
| } | |
| public function created(User $model): void | |
| { | |
| // 創建用戶後執行。 |
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@docs/zh-hk/components/model-observer.md` around lines 66 - 71, The two
example comments in the observer docs use simplified Chinese wording, which is
inconsistent with the zh-HK page. Update the comment text around the User
observer examples so both the `creating` and `created` annotations use
traditional Chinese characters, keeping the phrasing aligned with the rest of
the localized documentation.
| 安裝該組件之後,可以保留原始註釋: | ||
|
|
||
| ```php | ||
| /** | ||
| * @property int $user_id 用户id | ||
| * @property string $event_name 事件名称 | ||
| * @property string $event_name 事件名稱 |
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
把示例里的简体字改回繁体。
用户id 是简体写法,和这份 zh-HK 文档不一致;建议统一成繁体,避免示例看起来像混用了两个地区的文本。
🛠️ 建议修改
- * `@property` int $user_id 用户id
+ * `@property` int $user_id 用戶 ID📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| 安裝該組件之後,可以保留原始註釋: | |
| ```php | |
| /** | |
| * @property int $user_id 用户id | |
| * @property string $event_name 事件名称 | |
| * @property string $event_name 事件名稱 | |
| 安裝該組件之後,可以保留原始註釋: | |
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@docs/zh-hk/components/mysql-grammar-addon.md` around lines 41 - 46, The
example in the MySQL grammar addon docs mixes Simplified and Traditional
Chinese; update the `@property` comment text in the zh-HK sample to use
Traditional Chinese consistently. Fix the `user_id` description in the markdown
snippet so it matches the rest of the document’s locale, and keep the same style
throughout the example.
| 將 `cache` 替換為[元件目錄](../components/index.md)中的包名。大多陣列件會透過 Hyperf | ||
| 元件發現機制自動註冊;如果元件提供配置檔案,請按對應元件頁面的說明發布配置。 |
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
修正这里的笔误。
大多陣列件 不是有效说法,应该是 大多數元件。这会直接影响入门页的可读性。
🛠️ 建议修改
-將 `cache` 替換為[元件目錄](../components/index.md)中的包名。大多陣列件會透過 Hyperf
+將 `cache` 替換為[元件目錄](../components/index.md)中的包名。大多數元件會透過 Hyperf📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| 將 `cache` 替換為[元件目錄](../components/index.md)中的包名。大多陣列件會透過 Hyperf | |
| 元件發現機制自動註冊;如果元件提供配置檔案,請按對應元件頁面的說明發布配置。 | |
| 將 `cache` 替換為[元件目錄](../components/index.md)中的包名。大多數元件會透過 Hyperf | |
| 元件發現機制自動註冊;如果元件提供配置檔案,請按對應元件頁面的說明發布配置。 |
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@docs/zh-tw/guide/index.md` around lines 26 - 27, The phrase in the guide text
contains a typo: “大多陣列件” should be corrected to “大多數元件” in the documentation
content. Update the wording in the affected paragraph so the surrounding
explanation about Hyperf component discovery and config publishing remains
unchanged, and verify the text in the translated guide reads naturally with the
corrected term.

Summary by CodeRabbit
psy/psysh的依赖版本约束,仅保留更新的兼容范围。