Skip to content

Commit a58996a

Browse files
committed
Minor documentation improvements
1 parent cb9ced0 commit a58996a

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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
21892189
change how HTTP redirects will be followed.
21902190

21912191
You 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

21972197
The 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
23262326
can 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

23342334
Notice 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
23412341
change the maximum size for buffering a response body.
23422342

23432343
The preferred way to send an HTTP request is by using the above

src/Browser.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)