← 输入框|github.com|刷新
Skip to content

Raise minimum versions of phpdocumentor/reflection-docblock and psr/container - #657

Merged
chr-hertel merged 1 commit into
modelcontextprotocol:mainfrom
chr-hertel:raise-min-deps
Nov 3, 2026
Merged

chr-hertel merged 1 commit into
modelcontextprotocol:mainfrom
chr-hertel:raise-min-deps

Conversation

@chr-hertel

Copy link
Copy Markdown
Member

Needed for #643 - type-resolver 1.x cannot parse non-empty-array<T>, and the @param gets silently dropped.

  • phpdocumentor/reflection-docblock ^6.0, which brings type-resolver ^2.0 & phpdoc-parser ^2.0 - BC break, documented in the CHANGELOG: projects held on 5.x by another package can't update until that one allows 6.x
  • psr/container ^1.1 - Container::get(string $id): mixed is a fatal error against 1.0.0, CI just never resolved that version

Unit tests pass locally with lowest & highest dependencies.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are reported for the dependency-version updates.

No open issues 🎉

What changed in this PR

Raises minimum dependency versions to support PHPDoc parsing needed by #643 and avoid an incompatible container interface.

Changes:

  • Requires phpdocumentor/reflection-docblock ^6.0 for parsing types such as non-empty-array<T>.
  • Raises the psr/container 1.x minimum to ^1.1, retaining 2.x support.
  • Documents both requirements and marks the DocBlock dependency change as a breaking change.
File Description
composer.json Raises minimum DocBlock and container dependency versions.
CHANGELOG.md Records the dependency requirements and compatibility rationale.

Review effort: Balanced

@chr-hertel
chr-hertel merged commit dfe6506 into modelcontextprotocol:main Nov 3, 2026
28 checks passed
@chr-hertel
chr-hertel deleted the raise-min-deps branch November 3, 2026 00:33
chr-hertel added a commit to BrocksiNet/php-sdk that referenced this pull request Nov 4, 2026
…et/php-sdk into pr-618-end-a-listen-stream-that-can

* 'fix/listen-empty-filter' of https://github.com/BrocksiNet/php-sdk: (25 commits)
  [Server] Pass an explicit null to a nullable tool parameter with a default (modelcontextprotocol#642)
  [Capability] Check tool names against the spec's 128-character limit and character set (modelcontextprotocol#639)
  [Tests] Stop php -S servers together with their forked workers (modelcontextprotocol#658)
  chore(deps): bump astral-sh/setup-uv from 10.3.2 to 10.3.3 (modelcontextprotocol#659)
  [Server] Accept plain http on `*.localhost` and `127.0.0.0/8` hosts in OAuth URLs (modelcontextprotocol#620)
  [Capability] Map PHPDoc pseudo-types to the JSON Schema type of their base type (modelcontextprotocol#643)
  Raise minimum versions of `phpdocumentor/reflection-docblock` and `psr/container` (modelcontextprotocol#657)
  [Server] Use compact JSON in result formatters (modelcontextprotocol#647)
  [Server] Filter list completions in one pass (modelcontextprotocol#649)
  [Server] Fix result lists being sent as JSON objects (modelcontextprotocol#656)
  Avoid repeated array merges in prompt formatting (modelcontextprotocol#650)
  [Docs] Add AGENTS.md (modelcontextprotocol#634)
  Avoid repeated array merges in resource formatting (modelcontextprotocol#651)
  [Server] Fix `"0"` prefix offering all completions (modelcontextprotocol#655)
  Filter enum completions in one pass (modelcontextprotocol#652)
  Paginate registry references before mapping (modelcontextprotocol#653)
  Extract JWT scopes in one pass (modelcontextprotocol#654)
  [Server] Fix `Session::save()` wiping a session that the store failed to read (modelcontextprotocol#637)
  [Server] Answer a DELETE of an unknown or ended session with 404 (modelcontextprotocol#638)
  [Server] Add `Psr6SessionStore` and `Psr6NotificationBus` (modelcontextprotocol#635)
  ...
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