Skip to content

Commit 9f54ee2

Browse files
committed
chore: rename Stack constructor parameter
1 parent 34600b1 commit 9f54ee2

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
1212
### Changed
1313

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

1617
## [2.0.1] - 2021-03-14
1718

src/Stack.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,8 @@ class Stack implements RequestHandlerInterface
1616
*/
1717
protected array $middlewares = [];
1818

19-
protected ResponseInterface $defaultResponse;
20-
21-
public function __construct(ResponseInterface $response, MiddlewareInterface ...$middlewares)
19+
public function __construct(protected $defaultResponse, MiddlewareInterface ...$middlewares)
2220
{
23-
$this->defaultResponse = $response;
2421
$this->middlewares = $middlewares;
2522
}
2623

0 commit comments

Comments
 (0)