Skip to content

chore: drop phpstan mcp/sdk class.notFound ignore#8320

Merged
soyuka merged 1 commit into
api-platform:4.3from
soyuka:phpstan-fix-4.3
Jun 17, 2026
Merged

chore: drop phpstan mcp/sdk class.notFound ignore#8320
soyuka merged 1 commit into
api-platform:4.3from
soyuka:phpstan-fix-4.3

Conversation

@soyuka

@soyuka soyuka commented Jun 17, 2026

Copy link
Copy Markdown
Member

Since #8302 the MCP Loader statically imports `Mcp\Schema\ResourceDefinition`, which always exists under the required `mcp/sdk: ^0.6`. The PHPStan `class.notFound` ignore pattern for `Mcp\Schema(Resource|ResourceDefinition)` in `src/Mcp/Capability/Registry/Loader.php` can therefore never match, so `reportUnmatchedIgnoredErrors` fails the PHPStan job on 4.3.

Removes the dead ignore pattern.

Since api-platform#8302 the Loader statically imports Mcp\Schema\ResourceDefinition, which always exists under the required mcp/sdk ^0.6. The class.notFound ignore pattern can never match, so reportUnmatchedIgnoredErrors fails CI.
@soyuka soyuka changed the title fix(phpstan): drop dead mcp/sdk class.notFound ignore chore: drop phpstan mcp/sdk class.notFound ignore Jun 17, 2026
@soyuka soyuka merged commit 3948362 into api-platform:4.3 Jun 17, 2026
111 of 112 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