Skip to content

Extend BEAR.Sunday's ServerContextInterface - #332

Merged
koriym merged 1 commit into
bearsunday:1.xfrom
koriym:extend-sunday-server-context
Dec 1, 2026
Merged

koriym merged 1 commit into
bearsunday:1.xfrom
koriym:extend-sunday-server-context

Conversation

@koriym

@koriym koriym commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

BEAR\QueryRepository\ServerContextInterface now extends BEAR\Sunday\Extension\Server\ServerContextInterface (added in BEAR.Sunday 1.10.0), so a GlobalServerContext or any implementation of this package's interface is also a Sunday ServerContextInterface. bear/sunday is required at ^1.10.

Type hints and bindings stay on this package's interface until BEAR.Swoole binds the Sunday one. Step 2 of bearsunday/BEAR.Sunday#198

Summary by CodeRabbit

  • Compatibility
    • Requires BEAR.Sunday 1.10 or later.
    • ServerContextInterface now extends the corresponding BEAR.Sunday interface. Its local get declaration and runtime-specific documentation have been removed; has remains declared.
  • Documentation
    • The unreleased changelog records the updated dependency requirement and interface relationship.

Require bear/sunday ^1.10. Type hints and bindings stay on this package's interface until BEAR.Swoole binds the Sunday one.
@koriym

koriym commented Dec 1, 2026

Copy link
Copy Markdown
Member Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The package now requires bear/sunday version 1.10 or later. ServerContextInterface extends BEAR.Sunday’s server context interface and retains its has declaration.

Changes: Server context interface alignment

Layer / File(s) Summary
Interface and dependency alignment
src/ServerContextInterface.php, composer.json, CHANGELOG.md
ServerContextInterface extends BEAR.Sunday’s interface. Its own get declaration and prior interface documentation are removed. The bear/sunday constraint changes to ^1.10, and the changelog records the requirement and interface extension.

Estimated code review effort: 2 (Simple) | ~5 minutes

Change: Refactor

Merge Risk: Minimal · up to d15da

This change makes the server context interface extend BEAR.Sunday's and requires bear/sunday 1.10 or later. No merge-blocking risk was identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "Extend BEAR.Sunday's ServerContextInterface" matches the main change: the package's ServerContextInterface now extends BEAR\Sunday\Extension\Server\ServerContextInterface, and composer.json…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "Extend BEAR.Sunday's ServerContextInterface" matches the main change: the package's ServerContextInterface now extends BEAR\Sunday\Extension\Server\ServerContextInterface, and composer.json requires bear/sunday ^1.10. The title is short, specific, and names the primary change. It does not mention the dependency bump, but that is a secondary detail.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 9b96103 and d15da28.

Files selected for processing: 3

  • CHANGELOG.md
  • composer.json
  • src/ServerContextInterface.php

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@codecov

codecov Bot commented Dec 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (9b96103) to head (d15da28).

Additional details and impacted files
@@             Coverage Diff             @@
##                 1.x      #332   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
  Complexity       885       885           
===========================================
  Files            123       123           
  Lines           1965      1965           
===========================================
  Hits            1965      1965           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@coderabbitai

coderabbitai Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor
Action not completed

Already reviewed the last commit. Use @coderabbitai full review to rerun a review of the entire changeset.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@koriym
koriym merged commit aca076f into bearsunday:1.x Dec 1, 2026
22 of 23 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.

1 participant