Skip to content

Replace @since n.e.x.t placeholders with 0.5.0#167

Merged
galatanovidiu merged 1 commit intotrunkfrom
fix/replace-since-next-with-0.5.0
Apr 9, 2026
Merged

Replace @since n.e.x.t placeholders with 0.5.0#167
galatanovidiu merged 1 commit intotrunkfrom
fix/replace-since-next-with-0.5.0

Conversation

@galatanovidiu
Copy link
Copy Markdown
Contributor

Summary

  • Replace all @since n.e.x.t version placeholders with @since 0.5.0 across 28 PHP files before tagging the v0.5.0 release
  • Covers PHPDoc @since tags (~88 occurrences), 2 runtime _doing_it_wrong() version parameters, and 1 deprecation prose note
  • Pure find-and-replace — no logic changes

Test plan

  • Zero n.e.x.t matches remaining in includes/ and tests/ directories
  • Runtime usages in DefaultServerFactory.php and RegisterAbilityAsMcpResource.php verified
  • PHPStan Level 8: 0 errors
  • PHPCS: 0 violations

Copilot AI review requested due to automatic review settings April 9, 2026 06:10
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates version annotations across the MCP adapter codebase in preparation for the v0.5.0 release by replacing @since n.e.x.t placeholders with @since 0.5.0 (plus a couple of runtime _doing_it_wrong() version strings and one deprecation note).

Changes:

  • Replace @since n.e.x.t placeholders with @since 0.5.0 across PHPDoc blocks in includes/ and tests/.
  • Update _doing_it_wrong() “version” parameters from n.e.x.t to 0.5.0 where applicable.
  • Update one deprecation prose note to reference 0.5.0.

Reviewed changes

Copilot reviewed 28 out of 28 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/Unit/Transport/Infrastructure/McpTransportContextTest.php Update test class PHPDoc @since to 0.5.0.
tests/Unit/Core/McpVersionNegotiatorTest.php Update test class PHPDoc @since to 0.5.0.
includes/Transport/Infrastructure/SessionManager.php Update PHPDoc @since for config option to 0.5.0.
includes/Transport/Infrastructure/McpTransportContext.php Update constructor + validation method @since tags to 0.5.0.
includes/Transport/Infrastructure/HttpRequestHandler.php Update transport context getter + request handling @since tags to 0.5.0.
includes/Transport/Infrastructure/HttpRequestContext.php Update header property @since tag to 0.5.0.
includes/Servers/DefaultServerFactory.php Update _doing_it_wrong() version parameter to 0.5.0.
includes/Infrastructure/Observability/FailureReason.php Update file/class PHPDoc @since tags to 0.5.0.
includes/Handlers/Tools/ToolsHandler.php Update filter/method PHPDoc @since tags to 0.5.0.
includes/Handlers/Resources/ResourcesHandler.php Update filter/method PHPDoc @since tags to 0.5.0.
includes/Handlers/Prompts/PromptsHandler.php Update handler + filters + normalization helpers @since tags to 0.5.0.
includes/Handlers/Initialize/InitializeHandler.php Update negotiation + filter PHPDoc @since tags to 0.5.0.
includes/Handlers/HandlerHelperTrait.php Update helper PHPDoc @since tag to 0.5.0.
includes/Domain/Utils/McpValidator.php Update validator constants/methods @since tags to 0.5.0.
includes/Domain/Utils/McpNameSanitizer.php Update class/method PHPDoc @since tags to 0.5.0.
includes/Domain/Utils/ContentBlockHelper.php Update class PHPDoc @since tag to 0.5.0.
includes/Domain/Utils/AbilityArgumentNormalizer.php Update class/method PHPDoc @since tags to 0.5.0.
includes/Domain/Tools/RegisterAbilityAsMcpTool.php Update builder + filter PHPDoc @since tags to 0.5.0.
includes/Domain/Tools/McpToolValidator.php Update validator constant PHPDoc @since tag to 0.5.0.
includes/Domain/Tools/McpTool.php Update class PHPDoc @since tag to 0.5.0.
includes/Domain/Resources/RegisterAbilityAsMcpResource.php Update deprecation note + PHPDoc @since tags and _doing_it_wrong() version parameter to 0.5.0.
includes/Domain/Resources/McpResource.php Update class PHPDoc @since tag to 0.5.0.
includes/Domain/Prompts/RegisterAbilityAsMcpPrompt.php Update class/properties/methods/filter PHPDoc @since tags to 0.5.0.
includes/Domain/Prompts/McpPromptBuilder.php Update properties/constructor/accessors PHPDoc @since tags to 0.5.0.
includes/Domain/Prompts/McpPrompt.php Update class PHPDoc @since tag to 0.5.0.
includes/Domain/Contracts/McpComponentInterface.php Update interface + method PHPDoc @since tags to 0.5.0.
includes/Core/McpVersionNegotiator.php Update class/method PHPDoc @since tags to 0.5.0.
includes/Core/McpServer.php Update getter PHPDoc @since tag to 0.5.0.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@galatanovidiu galatanovidiu force-pushed the fix/replace-since-next-with-0.5.0 branch from 0362b6a to 39427a6 Compare April 9, 2026 06:21
All version placeholder tags accumulated during development need the
actual release version before tagging v0.5.0. Covers PHPDoc since tags,
runtime _doing_it_wrong() version parameters, and deprecation prose.
@galatanovidiu galatanovidiu force-pushed the fix/replace-since-next-with-0.5.0 branch from 39427a6 to 5a8e61a Compare April 9, 2026 06:22
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 9, 2026

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: galatanovidiu <ovidiu-galatan@git.wordpress.org>
Co-authored-by: gziolo <gziolo@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 9, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.25%. Comparing base (f1c3566) to head (5a8e61a).
⚠️ Report is 1 commits behind head on trunk.

Additional details and impacted files
@@            Coverage Diff            @@
##              trunk     #167   +/-   ##
=========================================
  Coverage     88.25%   88.25%           
  Complexity     1243     1243           
=========================================
  Files            54       54           
  Lines          4035     4035           
=========================================
  Hits           3561     3561           
  Misses          474      474           
Flag Coverage Δ
unit 88.25% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Member

@gziolo gziolo left a comment

Choose a reason for hiding this comment

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

LGTM!

@galatanovidiu galatanovidiu merged commit 8d0f1ef into trunk Apr 9, 2026
19 checks passed
@galatanovidiu galatanovidiu deleted the fix/replace-since-next-with-0.5.0 branch April 9, 2026 08:08
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.

3 participants