Skip to content

Commit bb84e0e

Browse files
committed
refactor: change visibility of formatResult method and update socket type in HttpServer
1 parent c6dd4c9 commit bb84e0e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Elements/RegisteredPrompt.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public function toArray(): array
112112
* @throws \RuntimeException If the result cannot be formatted.
113113
* @throws \JsonException If JSON encoding fails.
114114
*/
115-
protected function formatResult(mixed $promptGenerationResult): array
115+
private function formatResult(mixed $promptGenerationResult): array
116116
{
117117
if ($promptGenerationResult instanceof PromptMessage) {
118118
return [$promptGenerationResult];

src/Transports/HttpServer.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@
1212
use Psr\Log\LoggerInterface;
1313
use Psr\Log\NullLogger;
1414
use React\EventLoop\LoopInterface;
15+
use React\Socket\ServerInterface;
1516
use React\Socket\SocketServer;
1617

1718
final class HttpServer extends EventEmitter implements HttpServerInterface
1819
{
19-
public readonly SocketServer $socket;
20+
public readonly ServerInterface $socket;
2021
public readonly string $mcpPath;
2122
public readonly string $protocol;
2223
public readonly string $listenAddress;

0 commit comments

Comments
 (0)