Skip to content

Commit 2040094

Browse files
removed unnecessary check
1 parent c5d7a2d commit 2040094

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Bolt.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ private function handshake(): string
198198
/**
199199
* Read and compose selected protocol version
200200
*/
201-
private function unpackProtocolVersion(string $bytes): ?string
201+
private function unpackProtocolVersion(string $bytes): string
202202
{
203203
$result = [];
204204

@@ -210,8 +210,7 @@ private function unpackProtocolVersion(string $bytes): ?string
210210
array_shift($result);
211211
}
212212

213-
$version = implode('.', array_reverse($result));
214-
return in_array($version, $this->protocolVersions) ? $version : null;
213+
return implode('.', array_reverse($result));
215214
}
216215

217216
/**

0 commit comments

Comments
 (0)