From a98e01a4bec4f00c51d65f89f254257ecb8e725d Mon Sep 17 00:00:00 2001 From: Jonathan Renard <1273438+fox-john@users.noreply.github.com> Date: Sun, 1 Mar 2026 21:54:03 +0100 Subject: [PATCH] chore: remove final keyword on attributes classes (#240) Co-authored-by: Jonathan Renard --- src/Capability/Attribute/McpPrompt.php | 2 +- src/Capability/Attribute/McpResource.php | 2 +- src/Capability/Attribute/McpResourceTemplate.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Capability/Attribute/McpPrompt.php b/src/Capability/Attribute/McpPrompt.php index 0737c18..edb163b 100644 --- a/src/Capability/Attribute/McpPrompt.php +++ b/src/Capability/Attribute/McpPrompt.php @@ -20,7 +20,7 @@ use Mcp\Schema\Icon; * @author Kyrian Obikwelu */ #[\Attribute(\Attribute::TARGET_METHOD | \Attribute::TARGET_CLASS)] -final class McpPrompt +class McpPrompt { /** * @param ?string $name overrides the prompt name (defaults to method name) diff --git a/src/Capability/Attribute/McpResource.php b/src/Capability/Attribute/McpResource.php index 2dcf85e..80f309c 100644 --- a/src/Capability/Attribute/McpResource.php +++ b/src/Capability/Attribute/McpResource.php @@ -21,7 +21,7 @@ use Mcp\Schema\Icon; * @author Kyrian Obikwelu */ #[\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. diff --git a/src/Capability/Attribute/McpResourceTemplate.php b/src/Capability/Attribute/McpResourceTemplate.php index 14e66c5..0269f93 100644 --- a/src/Capability/Attribute/McpResourceTemplate.php +++ b/src/Capability/Attribute/McpResourceTemplate.php @@ -20,7 +20,7 @@ use Mcp\Schema\Annotations; * @author Kyrian Obikwelu */ #[\Attribute(\Attribute::TARGET_METHOD | \Attribute::TARGET_CLASS)] -final class McpResourceTemplate +class McpResourceTemplate { /** * @param string $uriTemplate the URI template string (RFC 6570)