Skip to content

Commit 7e2291d

Browse files
committed
ci
1 parent 1c457f6 commit 7e2291d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Mcp/State/StructuredContentProcessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function process(mixed $data, Operation $operation, array $uriVariables =
6868
new CallToolResult(
6969
[new TextContent($textContent)],
7070
false,
71-
is_array($structuredContent) ? $structuredContent : null,
71+
\is_array($structuredContent) ? $structuredContent : null,
7272
),
7373
);
7474
}

tests/Fixtures/TestBundle/Serializer/Normalizer/McpMarkdownNormalizer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
final class McpMarkdownNormalizer implements NormalizerInterface
2020
{
21-
public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null
21+
public function normalize(mixed $object, ?string $format = null, array $context = []): string
2222
{
2323
\assert($object instanceof McpWithMarkdown);
2424

@@ -28,7 +28,7 @@ public function normalize(mixed $object, ?string $format = null, array $context
2828
if ($object->isIncludeCodeBlock()) {
2929
$markdown .= "\n\n```php\n";
3030
$markdown .= "echo 'Hello, World!';\n";
31-
$markdown .= "```";
31+
$markdown .= '```';
3232
}
3333

3434
return $markdown;

0 commit comments

Comments
 (0)