Skip to content

Commit

Permalink
Mark all non-internal Message classes final
Browse files Browse the repository at this point in the history
  • Loading branch information
WyriHaximus committed Jul 10, 2020
1 parent b9ed1e6 commit c3e3da6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Message/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
*
* @see \Psr\Http\Message\ResponseInterface
*/
class Response extends Psr7Response
final class Response extends Psr7Response
{
/**
* @param int $status HTTP status code (e.g. 200/404)
Expand Down
2 changes: 1 addition & 1 deletion src/Message/ResponseException.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* The `getCode(): int` method can be used to
* return the HTTP response status code.
*/
class ResponseException extends RuntimeException
final class ResponseException extends RuntimeException
{
private $response;

Expand Down
2 changes: 1 addition & 1 deletion src/Message/ServerRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
*
* @see ServerRequestInterface
*/
class ServerRequest extends Request implements ServerRequestInterface
final class ServerRequest extends Request implements ServerRequestInterface
{
private $attributes = array();

Expand Down

0 comments on commit c3e3da6

Please sign in to comment.