Skip to content

Commit

Permalink
chore: rename Stack constructor parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
dirx committed Oct 21, 2024
1 parent 34600b1 commit 9f54ee2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
### Changed

- Drop support for PHP < 8.1
- Rename Stack constructor parameter `$defaultResponse` to `$response`

## [2.0.1] - 2021-03-14

Expand Down
5 changes: 1 addition & 4 deletions src/Stack.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,8 @@ class Stack implements RequestHandlerInterface
*/
protected array $middlewares = [];

protected ResponseInterface $defaultResponse;

public function __construct(ResponseInterface $response, MiddlewareInterface ...$middlewares)
public function __construct(protected $defaultResponse, MiddlewareInterface ...$middlewares)
{
$this->defaultResponse = $response;
$this->middlewares = $middlewares;
}

Expand Down

0 comments on commit 9f54ee2

Please sign in to comment.