From 855fa14031e46713effd876a26d74c0af16ae31b Mon Sep 17 00:00:00 2001 From: Matko Andjelinic Date: Sat, 24 Oct 2020 09:26:56 +0200 Subject: [PATCH] added missing return of with methods --- src/Handshake/PermessageDeflateOptions.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Handshake/PermessageDeflateOptions.php b/src/Handshake/PermessageDeflateOptions.php index 7a56750..051d428 100644 --- a/src/Handshake/PermessageDeflateOptions.php +++ b/src/Handshake/PermessageDeflateOptions.php @@ -39,21 +39,25 @@ final class PermessageDeflateOptions public function withClientNoContextTakeover() { $new = clone $this; $new->client_no_context_takeover = true; + return $new; } public function withoutClientNoContextTakeover() { $new = clone $this; $new->client_no_context_takeover = false; + return $new; } public function withServerNoContextTakeover() { $new = clone $this; $new->server_no_context_takeover = true; + return $new; } public function withoutServerNoContextTakeover() { $new = clone $this; $new->server_no_context_takeover = false; + return $new; } public function withServerMaxWindowBits($bits = self::MAX_WINDOW_BITS) { @@ -62,6 +66,7 @@ final class PermessageDeflateOptions } $new = clone $this; $new->server_max_window_bits = $bits; + return $new; } public function withClientMaxWindowBits($bits = self::MAX_WINDOW_BITS) { @@ -70,6 +75,7 @@ final class PermessageDeflateOptions } $new = clone $this; $new->client_max_window_bits = $bits; + return $new; } /**