File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -342,7 +342,8 @@ $handler = new MockHandler([
342342 'transfer_stats' => [
343343 'total_time' => 100
344344 ],
345- 'body' => fopen('somefile.json')
345+ 'body' => fopen('somefile.json'),
346+ 'effective_url' => 'localhost'
346347]);
347348$builder = ClientBuilder::create();
348349$builder->setHosts(['somehost']);
Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ private function sniffConnection(Connection $connection): bool
124124 return true ;
125125 }
126126
127- private function parseClusterState (string $ transportSchema , array $ nodeInfo ): array
127+ private function parseClusterState (string $ transportSchema , $ nodeInfo ): array
128128 {
129129 $ pattern = '/([^:]*):([0-9]+)/ ' ;
130130 $ schemaAddress = $ transportSchema . '_address ' ;
Original file line number Diff line number Diff line change @@ -448,7 +448,10 @@ public function ping(): bool
448448 }
449449 }
450450
451- public function sniff (): array
451+ /**
452+ * @return array|\GuzzleHttp\Ring\Future\FutureArray
453+ */
454+ public function sniff ()
452455 {
453456 $ options = [
454457 'client ' => [
You can’t perform that action at this time.
0 commit comments