Skip to content

Conversation

@CodeWithKyrian
Copy link
Contributor

This PR corrects the PHPDoc type hints in ListResourcesResult to use proper types instead of PHP's built-in resource type.

Motivation and Context

The @param and @return annotations were using lowercase resource, which PHPStan interprets as PHP's built-in type for external resources (like file handles), not the SDK's Resource class.

Copy link
Member

@chr-hertel chr-hertel left a comment

Choose a reason for hiding this comment

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

@chr-hertel chr-hertel merged commit 3818173 into modelcontextprotocol:main Dec 20, 2025
12 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.

2 participants