Skip to content

Commit ba62387

Browse files
chore: use v1.0 for php-mcp/schema
1 parent c3ea065 commit ba62387

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

composer.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"require": {
1414
"php": ">=8.1",
1515
"opis/json-schema": "^2.4",
16-
"php-mcp/schema": "dev-main",
16+
"php-mcp/schema": "^1.0",
1717
"phpdocumentor/reflection-docblock": "^5.6",
1818
"psr/clock": "^1.0",
1919
"psr/container": "^1.0 || ^2.0",
@@ -59,11 +59,5 @@
5959
}
6060
},
6161
"minimum-stability": "dev",
62-
"prefer-stable": true,
63-
"repositories": [
64-
{
65-
"type": "vcs",
66-
"url": "https://github.com/php-mcp/schema"
67-
}
68-
]
62+
"prefer-stable": true
6963
}

tests/Mocks/Clients/MockSseClient.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
use React\Http\Browser;
1010
use React\Promise\Deferred;
1111
use React\Promise\PromiseInterface;
12-
use React\Promise\Timer\TimeoutException;
1312
use React\Stream\ReadableStreamInterface;
1413

1514
use function React\Promise\reject;
@@ -104,7 +103,7 @@ public function getNextMessageResponse(string $expectedRequestId, int $timeoutSe
104103
}
105104

106105
if (microtime(true) - $startTime > $timeoutSecs) {
107-
$deferred->reject(new TimeoutException("Timeout waiting for SSE message with ID '{$expectedRequestId}'"));
106+
$deferred->reject(new \RuntimeException("Timeout waiting for SSE message with ID '{$expectedRequestId}'"));
108107
return;
109108
}
110109

@@ -151,7 +150,7 @@ public function getNextBatchMessageResponse(int $expectedItemCount, int $timeout
151150
}
152151

153152
if (microtime(true) - $startTime > $timeoutSecs) {
154-
$deferred->reject(new TimeoutException("Timeout waiting for SSE Batch Response with {$expectedItemCount} items."));
153+
$deferred->reject(new \RuntimeException("Timeout waiting for SSE Batch Response with {$expectedItemCount} items."));
155154
return;
156155
}
157156

0 commit comments

Comments
 (0)