From f7b5a30876a3a67df4ee2c6800cc8bfe4933404b Mon Sep 17 00:00:00 2001 From: Christopher Hertel Date: Tue, 4 Nov 2025 22:51:19 +0100 Subject: [PATCH] Rename $_meta properties to $meta --- src/Schema/Result/InitializeResult.php | 8 ++++---- src/Schema/Result/ListRootsResult.php | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Schema/Result/InitializeResult.php b/src/Schema/Result/InitializeResult.php index 9b0087ec..81cfe099 100644 --- a/src/Schema/Result/InitializeResult.php +++ b/src/Schema/Result/InitializeResult.php @@ -31,13 +31,13 @@ class InitializeResult implements ResultInterface * @param ServerCapabilities $capabilities the capabilities of the server * @param Implementation $serverInfo information about the server * @param string|null $instructions Instructions describing how to use the server and its features. This can be used by clients to improve the LLM's understanding of available tools, resources, etc. It can be thought of like a "hint" to the model. For example, this information MAY be added to the system prompt. - * @param array|null $_meta optional _meta field + * @param array|null $meta optional _meta field */ public function __construct( public readonly ServerCapabilities $capabilities, public readonly Implementation $serverInfo, public readonly ?string $instructions = null, - public readonly ?array $_meta = null, + public readonly ?array $meta = null, ) { } @@ -89,8 +89,8 @@ public function jsonSerialize(): array if (null !== $this->instructions) { $data['instructions'] = $this->instructions; } - if (null !== $this->_meta) { - $data['_meta'] = $this->_meta; + if (null !== $this->meta) { + $data['_meta'] = $this->meta; } return $data; diff --git a/src/Schema/Result/ListRootsResult.php b/src/Schema/Result/ListRootsResult.php index ab6c5c94..3abe2e0e 100644 --- a/src/Schema/Result/ListRootsResult.php +++ b/src/Schema/Result/ListRootsResult.php @@ -25,11 +25,11 @@ class ListRootsResult implements ResultInterface { /** * @param Root[] $roots an array of root URIs - * @param ?array $_meta optional metadata about the result + * @param ?array $meta optional metadata about the result */ public function __construct( public readonly array $roots, - public readonly ?array $_meta = null, + public readonly ?array $meta = null, ) { } @@ -45,8 +45,8 @@ public function jsonSerialize(): array 'roots' => array_values($this->roots), ]; - if (null !== $this->_meta) { - $result['_meta'] = $this->_meta; + if (null !== $this->meta) { + $result['_meta'] = $this->meta; } return $result;