File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2185,13 +2185,13 @@ given timeout value applied.
21852185
21862186#### withFollowRedirects()
21872187
2188- The ` withTimeout(bool|int $$ followRedirects): Browser ` method can be used to
2188+ The ` withTimeout(bool|int $followRedirects): Browser ` method can be used to
21892189change how HTTP redirects will be followed.
21902190
21912191You can pass in the maximum number of redirects to follow:
21922192
21932193``` php
2194- $new = $browser->withFollowRedirects(5);
2194+ $browser = $browser->withFollowRedirects(5);
21952195```
21962196
21972197The request will automatically be rejected when the number of redirects
@@ -2326,9 +2326,9 @@ If you want to explicitly use the legacy HTTP/1.0 protocol version, you
23262326can use this method:
23272327
23282328``` php
2329- $newBrowser = $browser->withProtocolVersion('1.0');
2329+ $browser = $browser->withProtocolVersion('1.0');
23302330
2331- $newBrowser ->get($url)->then(…);
2331+ $browser ->get($url)->then(…);
23322332```
23332333
23342334Notice that the [ ` Browser ` ] ( #browser ) is an immutable object, i.e. this
@@ -2337,7 +2337,7 @@ new protocol version applied.
23372337
23382338#### withResponseBuffer()
23392339
2340- The ` withRespomseBuffer (int $maximumSize): Browser` method can be used to
2340+ The ` withResponseBuffer (int $maximumSize): Browser` method can be used to
23412341change the maximum size for buffering a response body.
23422342
23432343The preferred way to send an HTTP request is by using the above
Original file line number Diff line number Diff line change @@ -433,7 +433,7 @@ public function withTimeout($timeout)
433433 * You can pass in the maximum number of redirects to follow:
434434 *
435435 * ```php
436- * $new = $browser->withFollowRedirects(5);
436+ * $browser = $browser->withFollowRedirects(5);
437437 * ```
438438 *
439439 * The request will automatically be rejected when the number of redirects
@@ -604,9 +604,9 @@ public function withBase($baseUrl)
604604 * can use this method:
605605 *
606606 * ```php
607- * $newBrowser = $browser->withProtocolVersion('1.0');
607+ * $browser = $browser->withProtocolVersion('1.0');
608608 *
609- * $newBrowser ->get($url)->then(…);
609+ * $browser ->get($url)->then(…);
610610 * ```
611611 *
612612 * Notice that the [`Browser`](#browser) is an immutable object, i.e. this
You can’t perform that action at this time.
0 commit comments