chore: remove final keyword on attributes classes (#240)

Co-authored-by: Jonathan Renard <jRenard@PRESTAMAC-175.local>
This commit is contained in:
Jonathan Renard 2026-03-01 21:54:03 +01:00 • committed by GitHub
commit a98e01a4be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View file

@ -20,7 +20,7 @@ use Mcp\Schema\Icon;
* @author Kyrian Obikwelu <koshnawaza@gmail.com> * @author Kyrian Obikwelu <koshnawaza@gmail.com>
*/ */
#[\Attribute(\Attribute::TARGET_METHOD | \Attribute::TARGET_CLASS)] #[\Attribute(\Attribute::TARGET_METHOD | \Attribute::TARGET_CLASS)]
final class McpPrompt class McpPrompt
{ {
/** /**
* @param ?string $name overrides the prompt name (defaults to method name) * @param ?string $name overrides the prompt name (defaults to method name)

View file

@ -21,7 +21,7 @@ use Mcp\Schema\Icon;
* @author Kyrian Obikwelu <koshnawaza@gmail.com> * @author Kyrian Obikwelu <koshnawaza@gmail.com>
*/ */
#[\Attribute(\Attribute::TARGET_METHOD | \Attribute::TARGET_CLASS)] #[\Attribute(\Attribute::TARGET_METHOD | \Attribute::TARGET_CLASS)]
final class McpResource class McpResource
{ {
/** /**
* @param string $uri The specific URI identifying this resource instance. Must be unique within the server. * @param string $uri The specific URI identifying this resource instance. Must be unique within the server.

View file

@ -20,7 +20,7 @@ use Mcp\Schema\Annotations;
* @author Kyrian Obikwelu <koshnawaza@gmail.com> * @author Kyrian Obikwelu <koshnawaza@gmail.com>
*/ */
#[\Attribute(\Attribute::TARGET_METHOD | \Attribute::TARGET_CLASS)] #[\Attribute(\Attribute::TARGET_METHOD | \Attribute::TARGET_CLASS)]
final class McpResourceTemplate class McpResourceTemplate
{ {
/** /**
* @param string $uriTemplate the URI template string (RFC 6570) * @param string $uriTemplate the URI template string (RFC 6570)