Skip to content
This repository was archived by the owner on Nov 12, 2025. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ public function getConfigTreeBuilder(): TreeBuilder
->arrayNode('server')
->addDefaultsIfNotSet()
->children()
->stringNode('name')->defaultValue(self::DEFAULT_NAME)->end()
->stringNode('version')->defaultValue(self::DEFAULT_VERSION)->end()
->scalarNode('name')->defaultValue(self::DEFAULT_NAME)->end()
->scalarNode('version')->defaultValue(self::DEFAULT_VERSION)->end()
->end()
->end()
->end();
Expand Down
2 changes: 1 addition & 1 deletion src/MethodHandler/InitializeMethodHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#[AsMethodHandler(methodName: 'initialize')]
class InitializeMethodHandler implements MethodHandlerInterface
{
public const string PROTOCOL_VERSION = '2025-03-26';
public const string PROTOCOL_VERSION = '2024-11-05';

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why change the protocol version?


public function __construct(
private readonly string $serverName,
Expand Down
1 change: 1 addition & 0 deletions src/Service/ResponseFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ private function createResponse(JsonRpcResponse $response): JsonResponse
{
$json = $this->serializer->serialize($response, 'json', [
AbstractObjectNormalizer::SKIP_NULL_VALUES => true,
AbstractObjectNormalizer::PRESERVE_EMPTY_OBJECTS => true,
]);

return JsonResponse::fromJsonString($json, JsonResponse::HTTP_OK);
Expand Down