Skip to content

Commit

Permalink
type safe Stack.php
Browse files Browse the repository at this point in the history
Signed-off-by: Vsevolod Dolgopolov (aka Seva) <[email protected]>
  • Loading branch information
zavalit authored Oct 23, 2024
1 parent 818a6ca commit a545045
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Stack.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Stack implements RequestHandlerInterface
*/
protected array $middlewares = [];

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

0 comments on commit a545045

Please sign in to comment.