Skip to content

[Server] Drop null from DocBlockParser::parseDocBlock() - #633

Merged
chr-hertel merged 2 commits into
modelcontextprotocol:mainfrom
chr-hertel:fix/phpstan-null-coalesce
Oct 27, 2026
Merged

chr-hertel merged 2 commits into
modelcontextprotocol:mainfrom
chr-hertel:fix/phpstan-null-coalesce

Conversation

@chr-hertel

@chr-hertel chr-hertel commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

PHPStan 2.3.3 flags getDocComment() ?? null as nullCoalesce.expr: getDocComment() returns string|false, never null. Drops the no-op coalesce and narrows parseDocBlock() to string|false to match, so callers pass getDocComment() as is. Unblocks the qa job on open PRs, e.g. #632.

🤖 Generated with Claude Code

@chr-hertel chr-hertel changed the title [Server] Drop no-op ?? null on getDocComment() [Server] Drop null from DocBlockParser::parseDocBlock() Oct 27, 2026
@chr-hertel chr-hertel added breaking change Breaking the Backwards Compatibility Promise Server Issues & PRs related to the Server component labels Oct 27, 2026
@chr-hertel
chr-hertel merged commit baf06f3 into modelcontextprotocol:main Oct 27, 2026
28 checks passed
@chr-hertel
chr-hertel deleted the fix/phpstan-null-coalesce branch October 27, 2026 20:36
chr-hertel added a commit to Adebayo120/php-sdk that referenced this pull request Oct 27, 2026
…nsport-leak-on

* origin/main:
  [Capability] Keep a nullable or union key of an array shape inside the shape (modelcontextprotocol#613)
  chore(deps): bump the npm_and_yarn group across 1 directory with 3 updates (modelcontextprotocol#632)
  [Server] Drop `null` from `DocBlockParser::parseDocBlock()` (modelcontextprotocol#633)
  chore(deps): bump astral-sh/setup-uv from 10.3.0 to 10.3.2 (modelcontextprotocol#628)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking change Breaking the Backwards Compatibility Promise Server Issues & PRs related to the Server component

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant