We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5d7a2d commit 2040094Copy full SHA for 2040094
src/Bolt.php
@@ -198,7 +198,7 @@ private function handshake(): string
198
/**
199
* Read and compose selected protocol version
200
*/
201
- private function unpackProtocolVersion(string $bytes): ?string
+ private function unpackProtocolVersion(string $bytes): string
202
{
203
$result = [];
204
@@ -210,8 +210,7 @@ private function unpackProtocolVersion(string $bytes): ?string
210
array_shift($result);
211
}
212
213
- $version = implode('.', array_reverse($result));
214
- return in_array($version, $this->protocolVersions) ? $version : null;
+ return implode('.', array_reverse($result));
215
216
217
0 commit comments