From a292e90203182c601b9e4e61cb3864bfbcdfb141 Mon Sep 17 00:00:00 2001 From: Taylor Vance <33555535+taylorvance@users.noreply.github.com> Date: Tue, 17 Dec 2024 15:17:17 -0600 Subject: [PATCH] Fix for 8.4 compatibility Deprecated: Ratchet\Client\connect(): Implicitly marking parameter $loop as nullable is deprecated, the explicit nullable type must be used instead in /var/www/vendor/ratchet/pawl/src/functions.php on line 12 --- 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);