From 1c0302df7573ed39a166a475be746bd028c2eee2 Mon Sep 17 00:00:00 2001 From: Mohamad Faeez Date: Wed, 9 Apr 2025 15:19:47 +0800 Subject: [PATCH] Minor update --- src/Handshake/ServerNegotiator.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Handshake/ServerNegotiator.php b/src/Handshake/ServerNegotiator.php index 7929f5f..2a6b2cd 100644 --- a/src/Handshake/ServerNegotiator.php +++ b/src/Handshake/ServerNegotiator.php @@ -23,8 +23,9 @@ class ServerNegotiator implements NegotiatorInterface { public function __construct( RequestVerifier $requestVerifier, ResponseFactoryInterface $responseFactory, - $enablePerMessageDeflate = false + $enablePerMessageDeflate = null ) { + if ($enablePerMessageDeflate == null) $enablePerMessageDeflate = false; $this->verifier = $requestVerifier; $this->responseFactory = $responseFactory;