From 0d8bd945fc5395420a419783a72f423ae615457f Mon Sep 17 00:00:00 2001 From: Valithor Obsidion Date: Thu, 21 Nov 2024 14:04:17 -0500 Subject: [PATCH] PHP 8.4: Implicitly nullable parameters deprecated Implicitly marking parameter $perMessageDeflateOptions as nullable is deprecated, the explicit nullable type must be used instead --- src/Handshake/ClientNegotiator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Handshake/ClientNegotiator.php b/src/Handshake/ClientNegotiator.php index c32a1cf..adb8fc8 100644 --- a/src/Handshake/ClientNegotiator.php +++ b/src/Handshake/ClientNegotiator.php @@ -16,7 +16,7 @@ class ClientNegotiator { */ private $defaultHeader; - function __construct(PermessageDeflateOptions $perMessageDeflateOptions = null) { + function __construct(?PermessageDeflateOptions $perMessageDeflateOptions = null) { $this->verifier = new ResponseVerifier; $this->defaultHeader = new Request('GET', '', [