PHP 8.4 compatibility issues
Are there plans to make Pawl fully compatible to PHP 8.4? Currently there are some deprecation warnings regarding the Client connect() function.
Deprecated: Ratchet\Client\connect(): Implicitly marking parameter $loop as nullable is deprecated, the explicit nullable type must be used instead in vendor/ratchet/pawl/src/functions.php on line 12 PHP Deprecated: Ratchet\Client\connect(): Implicitly marking parameter $loop as nullable is deprecated, the explicit nullable type must be used instead in vendor/ratchet/pawl/src/functions.php on line 12
Edit: Would be a very simple change in one line:
From
function connect($url, array $subProtocols = [], $headers = [], LoopInterface $loop = null) {
$connector = new Connector($loop);
$connection = $connector($url, $subProtocols, $headers);
return $connection;
}
To:
function connect($url, array $subProtocols = [], $headers = [], LoopInterface|null $loop = null) {
$connector = new Connector($loop);
$connection = $connector($url, $subProtocols, $headers);
return $connection;
}
I am facing the same issue. When are you planning to give fix for this?
Is this repo even alive?
repository hasn't been updated for many years. Is there a chance to fix these errors with php 8.4?
Please, fix this.
Could you fix it?
This has already been fixed: https://github.com/ratchetphp/Pawl/pull/158
I suspect this could be closed