From 6ff4512f8c6e01d2398e62d5064c446d73805a0d Mon Sep 17 00:00:00 2001 From: Valithor Obsidion Date: Thu, 21 Nov 2024 14:06:37 -0500 Subject: [PATCH 1/3] Update Connector.php --- src/Connector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Connector.php b/src/Connector.php index 456a3d1..c7b0ac3 100644 --- a/src/Connector.php +++ b/src/Connector.php @@ -15,7 +15,7 @@ class Connector { protected $_connector; protected $_negotiator; - public function __construct(LoopInterface $loop = null, ConnectorInterface $connector = null) { + public function __construct(?LoopInterface $loop = null, ?ConnectorInterface $connector = null) { $this->_loop = $loop ?: Loop::get(); if (null === $connector) { From 4db02ba3b222fe986014625ccb61dc2cc0eb9f8a Mon Sep 17 00:00:00 2001 From: Valithor Obsidion Date: Thu, 21 Nov 2024 14:07:00 -0500 Subject: [PATCH 2/3] Update functions.php --- src/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/functions.php b/src/functions.php index 373afe4..b060fd8 100644 --- a/src/functions.php +++ b/src/functions.php @@ -9,7 +9,7 @@ * @param LoopInterface|null $loop * @return \React\Promise\PromiseInterface<\Ratchet\Client\WebSocket> */ -function connect($url, array $subProtocols = [], $headers = [], LoopInterface $loop = null) { +function connect($url, array $subProtocols = [], $headers = [], ?LoopInterface $loop = null) { $connector = new Connector($loop); $connection = $connector($url, $subProtocols, $headers); From 8120c2e73b93589cecd501eea650816fbf43d0df Mon Sep 17 00:00:00 2001 From: Valithor Obsidion Date: Wed, 19 Mar 2025 08:13:14 -0400 Subject: [PATCH 3/3] ratchet/rfc6455 ^0.4 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index d7a09ec..b5d6d1e 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,7 @@ "php": ">=5.4" , "evenement/evenement": "^3.0 || ^2.0" , "guzzlehttp/psr7": "^2.0 || ^1.7" - , "ratchet/rfc6455": "^0.3.1" + , "ratchet/rfc6455": "^0.4" , "react/socket": "^1.9" } , "require-dev": {