Skip to content

Commit f7b5a30

Browse files
committed
Rename $_meta properties to $meta
1 parent 85549cb commit f7b5a30

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/Schema/Result/InitializeResult.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ class InitializeResult implements ResultInterface
3131
* @param ServerCapabilities $capabilities the capabilities of the server
3232
* @param Implementation $serverInfo information about the server
3333
* @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.
34-
* @param array<string,mixed>|null $_meta optional _meta field
34+
* @param array<string,mixed>|null $meta optional _meta field
3535
*/
3636
public function __construct(
3737
public readonly ServerCapabilities $capabilities,
3838
public readonly Implementation $serverInfo,
3939
public readonly ?string $instructions = null,
40-
public readonly ?array $_meta = null,
40+
public readonly ?array $meta = null,
4141
) {
4242
}
4343

@@ -89,8 +89,8 @@ public function jsonSerialize(): array
8989
if (null !== $this->instructions) {
9090
$data['instructions'] = $this->instructions;
9191
}
92-
if (null !== $this->_meta) {
93-
$data['_meta'] = $this->_meta;
92+
if (null !== $this->meta) {
93+
$data['_meta'] = $this->meta;
9494
}
9595

9696
return $data;

src/Schema/Result/ListRootsResult.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ class ListRootsResult implements ResultInterface
2525
{
2626
/**
2727
* @param Root[] $roots an array of root URIs
28-
* @param ?array<string, mixed> $_meta optional metadata about the result
28+
* @param ?array<string, mixed> $meta optional metadata about the result
2929
*/
3030
public function __construct(
3131
public readonly array $roots,
32-
public readonly ?array $_meta = null,
32+
public readonly ?array $meta = null,
3333
) {
3434
}
3535

@@ -45,8 +45,8 @@ public function jsonSerialize(): array
4545
'roots' => array_values($this->roots),
4646
];
4747

48-
if (null !== $this->_meta) {
49-
$result['_meta'] = $this->_meta;
48+
if (null !== $this->meta) {
49+
$result['_meta'] = $this->meta;
5050
}
5151

5252
return $result;

0 commit comments

Comments
 (0)