Skip to content

Commit c3e3da6

Browse files
committed
Mark all non-internal Message classes final
1 parent b9ed1e6 commit c3e3da6

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/Message/Response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
*
3333
* @see \Psr\Http\Message\ResponseInterface
3434
*/
35-
class Response extends Psr7Response
35+
final class Response extends Psr7Response
3636
{
3737
/**
3838
* @param int $status HTTP status code (e.g. 200/404)

src/Message/ResponseException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* The `getCode(): int` method can be used to
1515
* return the HTTP response status code.
1616
*/
17-
class ResponseException extends RuntimeException
17+
final class ResponseException extends RuntimeException
1818
{
1919
private $response;
2020

src/Message/ServerRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
*
3030
* @see ServerRequestInterface
3131
*/
32-
class ServerRequest extends Request implements ServerRequestInterface
32+
final class ServerRequest extends Request implements ServerRequestInterface
3333
{
3434
private $attributes = array();
3535

0 commit comments

Comments
 (0)