Skip to content

Commit

Permalink
Corrected 'HttpRequest'.
Browse files Browse the repository at this point in the history
  • Loading branch information
danbettles committed Dec 3, 2022
1 parent e80305b commit d9ddcbf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

No unreleased changes.

## [2.3.1] - 2022-12-03

### Fixed

- In `HttpRequest`, use `setContent()` in the constructor, duh!

## [2.3.0] - 2022-12-03

### Added
Expand Down Expand Up @@ -52,7 +58,8 @@ No unreleased changes.

First stable release.

[unreleased]: https://github.com/danbettles/marigold/compare/v2.3.0...HEAD
[unreleased]: https://github.com/danbettles/marigold/compare/v2.3.1...HEAD
[2.3.1]: https://github.com/danbettles/marigold/compare/v2.3.0...v2.3.1
[2.3.0]: https://github.com/danbettles/marigold/compare/v2.2.1...v2.3.0
[2.2.1]: https://github.com/danbettles/marigold/compare/v2.2.0...v2.2.1
[2.2.0]: https://github.com/danbettles/marigold/compare/v2.1.0...v2.2.0
Expand Down
5 changes: 3 additions & 2 deletions src/HttpRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class HttpRequest
* @param array<string,string> $query
* @param array<string,string> $request
* @param array<string,string|string[]> $server
* @param mixed $content
* @param mixed $content = null
*/
public function __construct(
array $query,
Expand All @@ -54,7 +54,8 @@ public function __construct(
$this->request = $request;
$this->server = $server;
$this->attributes = [];
$this->content = $content;

$this->setContent($content);
}

/**
Expand Down

0 comments on commit d9ddcbf

Please sign in to comment.