added missing return of with methods

This commit is contained in:
Matko Andjelinic 2020-10-24 09:26:56 +02:00
parent c8651c7938
commit 855fa14031

View File

@ -39,21 +39,25 @@ final class PermessageDeflateOptions
public function withClientNoContextTakeover() { public function withClientNoContextTakeover() {
$new = clone $this; $new = clone $this;
$new->client_no_context_takeover = true; $new->client_no_context_takeover = true;
return $new;
} }
public function withoutClientNoContextTakeover() { public function withoutClientNoContextTakeover() {
$new = clone $this; $new = clone $this;
$new->client_no_context_takeover = false; $new->client_no_context_takeover = false;
return $new;
} }
public function withServerNoContextTakeover() { public function withServerNoContextTakeover() {
$new = clone $this; $new = clone $this;
$new->server_no_context_takeover = true; $new->server_no_context_takeover = true;
return $new;
} }
public function withoutServerNoContextTakeover() { public function withoutServerNoContextTakeover() {
$new = clone $this; $new = clone $this;
$new->server_no_context_takeover = false; $new->server_no_context_takeover = false;
return $new;
} }
public function withServerMaxWindowBits($bits = self::MAX_WINDOW_BITS) { public function withServerMaxWindowBits($bits = self::MAX_WINDOW_BITS) {
@ -62,6 +66,7 @@ final class PermessageDeflateOptions
} }
$new = clone $this; $new = clone $this;
$new->server_max_window_bits = $bits; $new->server_max_window_bits = $bits;
return $new;
} }
public function withClientMaxWindowBits($bits = self::MAX_WINDOW_BITS) { public function withClientMaxWindowBits($bits = self::MAX_WINDOW_BITS) {
@ -70,6 +75,7 @@ final class PermessageDeflateOptions
} }
$new = clone $this; $new = clone $this;
$new->client_max_window_bits = $bits; $new->client_max_window_bits = $bits;
return $new;
} }
/** /**