Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Make all implementations final #155

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Middleware/CallableMiddlewareDecorator.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* Neither the arguments nor the return value need be typehinted; however, if
* the signature is incompatible, a PHP Error will likely be thrown.
*/
class CallableMiddlewareDecorator implements MiddlewareInterface
final class CallableMiddlewareDecorator implements MiddlewareInterface
{
/**
* @var callable
Expand Down
2 changes: 1 addition & 1 deletion src/Middleware/DoublePassMiddlewareDecorator.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
* Neither the arguments nor the return value need be typehinted; however, if
* the signature is incompatible, a PHP Error will likely be thrown.
*/
class DoublePassMiddlewareDecorator implements MiddlewareInterface
final class DoublePassMiddlewareDecorator implements MiddlewareInterface
{
/**
* @var callable
Expand Down
2 changes: 1 addition & 1 deletion src/Middleware/HostMiddlewareDecorator.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
use Psr\Http\Server\MiddlewareInterface;
use Psr\Http\Server\RequestHandlerInterface;

class HostMiddlewareDecorator implements MiddlewareInterface
final class HostMiddlewareDecorator implements MiddlewareInterface
{
/** @var MiddlewareInterface */
private $middleware;
Expand Down
2 changes: 1 addition & 1 deletion src/Middleware/NotFoundHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
use Psr\Http\Server\MiddlewareInterface;
use Psr\Http\Server\RequestHandlerInterface;

class NotFoundHandler implements MiddlewareInterface
final class NotFoundHandler implements MiddlewareInterface
{
/**
* @var callable
Expand Down
2 changes: 1 addition & 1 deletion src/Middleware/OriginalMessages.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* - Determining if changes to the response have occurred.
* - Providing prototypes for factories.
*/
class OriginalMessages implements MiddlewareInterface
final class OriginalMessages implements MiddlewareInterface
{
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/Middleware/PathMiddlewareDecorator.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
use Psr\Http\Server\MiddlewareInterface;
use Psr\Http\Server\RequestHandlerInterface;

class PathMiddlewareDecorator implements MiddlewareInterface
final class PathMiddlewareDecorator implements MiddlewareInterface
{
/** @var MiddlewareInterface */
private $middleware;
Expand Down
2 changes: 1 addition & 1 deletion src/Middleware/RequestHandlerMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
* they may be piped or routed to. When processed, they delegate handling to the
* decorated handler, which will return a response.
*/
class RequestHandlerMiddleware implements MiddlewareInterface, RequestHandlerInterface
final class RequestHandlerMiddleware implements MiddlewareInterface, RequestHandlerInterface
{
/**
* @var RequestHandlerInterface Decorated handler to invoke.
Expand Down
2 changes: 1 addition & 1 deletion src/Next.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
/**
* Iterate a queue of middlewares and execute them.
*/
class Next implements RequestHandlerInterface
final class Next implements RequestHandlerInterface
{
/**
* @var RequestHandlerInterface
Expand Down