From 3a6e8571706750b7b31e81e9879b7bc340488f35 Mon Sep 17 00:00:00 2001 From: Matt Bonneau Date: Thu, 5 Dec 2024 17:00:38 -0500 Subject: [PATCH] Implicitly nullable parameters deprecated --- src/Handshake/ClientNegotiator.php | 2 +- src/Messaging/Frame.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Handshake/ClientNegotiator.php b/src/Handshake/ClientNegotiator.php index cfa6575..547b5ea 100644 --- a/src/Handshake/ClientNegotiator.php +++ b/src/Handshake/ClientNegotiator.php @@ -14,7 +14,7 @@ class ClientNegotiator { public function __construct( RequestFactoryInterface $requestFactory, - PermessageDeflateOptions $perMessageDeflateOptions = null + ?PermessageDeflateOptions $perMessageDeflateOptions = null ) { $this->verifier = new ResponseVerifier; $this->requestFactory = $requestFactory; diff --git a/src/Messaging/Frame.php b/src/Messaging/Frame.php index 8bc9265..7833423 100644 --- a/src/Messaging/Frame.php +++ b/src/Messaging/Frame.php @@ -67,7 +67,7 @@ class Frame implements FrameInterface { * @param int $opcode * @param callable<\UnderflowException> $ufExceptionFactory */ - public function __construct(?string $payload = null, bool $final = true, int $opcode = 1, callable $ufExceptionFactory = null) { + public function __construct(?string $payload = null, bool $final = true, int $opcode = 1, ?callable $ufExceptionFactory = null) { $this->ufeg = $ufExceptionFactory ?: static fn (string $msg = '') => new \UnderflowException($msg); if (null === $payload) {