Skip to content

Commit b250f4a

Browse files
authored
Allow users to not specify server info (#164)
* Allow users to not specify server info * change to default name
1 parent 280e8b6 commit b250f4a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Server/Builder.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,9 @@ public function build(): Server
481481
logging: false,
482482
completions: true,
483483
);
484-
$configuration = new Configuration($this->serverInfo, $capabilities, $this->paginationLimit, $this->instructions, $this->protocolVersion);
484+
485+
$serverInfo = $this->serverInfo ?? new Implementation();
486+
$configuration = new Configuration($serverInfo, $capabilities, $this->paginationLimit, $this->instructions, $this->protocolVersion);
485487
$referenceHandler = new ReferenceHandler($container);
486488

487489
$requestHandlers = array_merge($this->requestHandlers, [

0 commit comments

Comments
 (0)