-
Notifications
You must be signed in to change notification settings - Fork 20
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
Restored return type for 'request' method #297
Conversation
Important Review SkippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ウォークスルーこの変更は、 変更点
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 (
|
@coderabbitai review |
Actions PerformedReview triggered.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 1.x #297 +/- ##
===========================================
Coverage 100.00% 100.00%
Complexity 504 504
===========================================
Files 83 83
Lines 1346 1346
===========================================
Hits 1346 1346 ☔ View full report in Codecov by Sentry. |
Removed phpstan ignore comments in the configureDeprecatedBindings function of the ResourceClientModule class. The code now adheres to phpstan static analysis tool, improving code quality and reducing technical debt.
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: 1
Review Details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- src/Module/ResourceClientModule.php (1 hunks)
- src/RequestInterface.php (1 hunks)
Additional comments not posted (1)
src/Module/ResourceClientModule.php (1)
100-101
:configureDeprecatedBindings
メソッドから@phpstan-ignore
アノテーションを削除しました。これにより、HalLink
とReverseLinkInterface
のバインディングが PHPStan の静的解析チェックに準拠していることが示されます。新しい PHPStan エラーが発生していないか確認してください。
d709630
to
c85d26f
Compare
The commit adds the @inheritdoc annotation to all methods in the FakeRequest class. The clear reference to the documentation from the implemented interfaces will aid readability and further understanding of the code base.
request
実行後にbodyにアクセスしようとするとResourceInterfaceにはプロパティとしてbodyがないため、静的解析でエラーが発生してしまう変更履歴ではrectorとsaでの修正履歴のためIF自体が変わったわけではない模様なので、使用しているリソースに影響が出ないようにreturn typeをrector適用前の状態に戻した