Skip to content

Commit faa92ba

Browse files
authored
Make Rfc6455Connector compatible with PHP 8.4 (#53)
Fixes this error: ``` Deprecated: Amp\Websocket\Client\Rfc6455Connector::__construct(): Implicitly marking parameter $httpClient as nullable is deprecated, the explicit nullable type must be used instead in src/Rfc6455Connector.php on line 32 ```
1 parent 97e154b commit faa92ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Rfc6455Connector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ final class Rfc6455Connector implements WebsocketConnector
3131
*/
3232
public function __construct(
3333
private readonly WebsocketConnectionFactory $connectionFactory = new Rfc6455ConnectionFactory(),
34-
HttpClient $httpClient = null,
34+
?HttpClient $httpClient = null,
3535
private readonly ?WebsocketCompressionContextFactory $compressionContextFactory = new Rfc7692CompressionFactory(),
3636
) {
3737
$this->httpClient = $httpClient

0 commit comments

Comments
 (0)