From 742389ca79b14990f163b7582492cf6e6748c615 Mon Sep 17 00:00:00 2001 From: Yada Clintjens Date: Wed, 8 Nov 2023 14:39:56 +0100 Subject: [PATCH] Fix typos in documentation --- CHANGELOG.md | 6 +++--- src/Client.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cd72e1d..3a9384f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -176,7 +176,7 @@ ```php $promise = $proxy->connect('imap.example.com:143'); - $promise->then(null, function (Exeption $e) { + $promise->then(null, function (Exception $e) { if ($e->getCode() === SOCKET_EACCES) { echo 'Failed to authenticate with proxy!'; } @@ -250,7 +250,7 @@ ## 0.7.0 (2017-04-14) -* Feature / BC break: Replace depreacted SocketClient with Socket v0.7 and +* Feature / BC break: Replace deprecated SocketClient with Socket v0.7 and use `connect($uri)` instead of `create($host, $port)` (#51 by @clue) @@ -470,7 +470,7 @@ * First stable release * Async SOCKS `Client` and `Server` implementation * Project was originally part of [clue/socks](https://github.com/clue/php-socks) - and was split off from its latest releave v0.4.0 + and was split off from its latest release v0.4.0 ([#1](https://github.com/clue/reactphp-socks/issues/1)) > Upgrading from clue/socks v0.4.0? Use namespace `Clue\React\Socks` instead of `Socks` and you're ready to go! diff --git a/src/Client.php b/src/Client.php index 5645c25..b657025 100644 --- a/src/Client.php +++ b/src/Client.php @@ -451,7 +451,7 @@ private function handleSocks5(ConnectionInterface $stream, $host, $port, StreamR // IPv6 address => skip IP and port return $reader->readLength(18); } else { - throw new Exception('Invalid SOCKS reponse: Invalid address type'); + throw new Exception('Invalid SOCKS response: Invalid address type'); } }); }