Skip to content

Commit

Permalink
[*]: update the changelog v2
Browse files Browse the repository at this point in the history
  • Loading branch information
voku committed Jul 20, 2023
1 parent 4400aee commit 97c8279
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

## 3.0.0 (2023-07-20)

- minimal PHP version 7.4
- allow to use "psr/http-message" 2.0.*
- allow to use "psr/log" 2.0.* || 3.0.*

breaking change:
- minimal PHP version 7.4
- fixed "Response->hasBody()", now if will return `false` for an empty body
- "Stream->getContents()" now returns always a string, if we need the old behaviors, use can use "Stream->getContentsUnserialized()"
- "Response->hasBody()" was fixed, now it will return `false` for an empty body
- "Request->getUri()" now always returns an `UriInterface` , if we need the old behaviors, use can use "Request->getUriOrNull()"
- "Stream->getContents()" now always returns a `string`, if we need the old behaviors, use can use "Stream->getContentsUnserialized()"
- "psr/http-message" v2 has return types, so you need to use them too, if you extend one of this classes

## 2.4.9 (2023-07-15)
Expand Down
2 changes: 1 addition & 1 deletion tests/Httpful/RequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ public function testWithRequestTarget()
public function testWithUri()
{
$r1 = new Request('GET', '/');
$u1 = $r1->getUri();
$u1 = $r1->getUriOrNull();
$u2 = new Uri('http://www.example.com');
$r2 = $r1->withUri($u2);
static::assertNotSame($r1, $r2);
Expand Down

0 comments on commit 97c8279

Please sign in to comment.