From 51359341e92e64b165f792ff5eaf4e4d15225ad1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oriol=20Jim=C3=A9nez?= Date: Wed, 11 Dec 2024 11:17:09 +0100 Subject: [PATCH 1/2] Update Connector.php Solved #159 --- src/Connector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Connector.php b/src/Connector.php index 456a3d1..930148f 100644 --- a/src/Connector.php +++ b/src/Connector.php @@ -6,7 +6,7 @@ use React\Socket\ConnectionInterface; use React\Socket\ConnectorInterface; use React\Promise\Deferred; -use React\Promise\RejectedPromise; +use React\Promise\Internal\RejectedPromise; use Psr\Http\Message\RequestInterface; use GuzzleHttp\Psr7 as gPsr; From 8dee843c2a56bc7fde3b22bd15965ba513a77cff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oriol=20Jim=C3=A9nez?= Date: Wed, 11 Dec 2024 11:28:09 +0100 Subject: [PATCH 2/2] Update ConnectorTest.php Also fixed in test --- tests/unit/ConnectorTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/ConnectorTest.php b/tests/unit/ConnectorTest.php index c560691..408f434 100644 --- a/tests/unit/ConnectorTest.php +++ b/tests/unit/ConnectorTest.php @@ -3,7 +3,7 @@ use PHPUnit\Framework\TestCase; use Ratchet\Client\Connector; use React\EventLoop\Loop; -use React\Promise\RejectedPromise; +use React\Promise\Internal\RejectedPromise; use React\Promise\Promise; class ConnectorTest extends TestCase