Skip to content

Commit d47dc20

Browse files
chazzbgnekufa
authored andcommitted
fix typo
1 parent bcdd118 commit d47dc20

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Connection.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Connection
2828
private float $pingAt = 0;
2929
private float $pongAt = 0;
3030
private float $prolongateTill = 0;
31-
private int $paketSize = 1024;
31+
private int $packetSize = 1024;
3232

3333
private ?Authenticator $authenticator;
3434
private Configuration $config;
@@ -135,7 +135,7 @@ public function sendMessage(Message $message)
135135

136136
while ($total < $length) {
137137
try {
138-
$written = @fwrite($this->socket, substr($line, $total, $this->paketSize));
138+
$written = @fwrite($this->socket, substr($line, $total, $this->packetSize));
139139
if ($written === false) {
140140
throw new LogicException('Error sending data');
141141
}
@@ -298,7 +298,7 @@ private function processException(Throwable $e)
298298

299299
public function setPacketSize(int $size): void
300300
{
301-
$this->paketSize = $size;
301+
$this->packetSize = $size;
302302
}
303303

304304
public function close(): void

0 commit comments

Comments
 (0)