Skip to content

Commit cc31313

Browse files
committed
reduced standard version count to 4
1 parent 89a6821 commit cc31313

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Bolt.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ final class Bolt
4848
/**
4949
* @var array
5050
*/
51-
private $versions = [4.3, 4.2, 4.1, 4, 3];
51+
private $versions = [4.3, 4.1, 4, 3];
5252

5353
/**
5454
* @var float
@@ -138,7 +138,7 @@ private function handshake(): bool
138138
echo 'HANDSHAKE';
139139

140140
$this->connection->write(chr(0x60) . chr(0x60) . chr(0xb0) . chr(0x17));
141-
$this->connection->write(chr(0x00) . chr(0x03) . chr(0x03) . chr(0x04) . chr(0x00) . chr(0x00) . chr(0x01) . chr(0x04) . chr(0x00) . chr(0x00) . chr(0x00) . chr(0x04) . chr(0x00) . chr(0x00) . chr(0x00) . chr(0x03));
141+
$this->connection->write($this->packProtocolVersions());
142142

143143
$this->unpackProtocolVersion();
144144
if (empty($this->version)) {

0 commit comments

Comments
 (0)