Skip to content

Commit 38ceb97

Browse files
committed
Updated changelog
1 parent 3160b9c commit 38ceb97

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,16 @@ The change log describes what is "Added", "Removed", "Changed" or "Fixed" betwee
88
### Changed
99

1010
First parameter of `Github\Client` has changed type from `\Http\Client\HttpClient` to
11-
`Github\HttpClient\Builder`. To upgrade you need to change:
11+
`Github\HttpClient\Builder`. A factory class was also added. To upgrade you need to change:
1212

13-
```php
13+
```php
1414
// Old way does not work:
1515
$github = new Github\Client($httpClient);
1616

1717
// New way will work:
1818
$github = new Github\Client(new Github\HttpClient\Builder($httpClient));
19-
20-
```
21-
19+
$github = Github\Client::createFromHttpClient($httpClient);
20+
```
2221

2322
### Added
2423

0 commit comments

Comments
 (0)