From 450ebf1b16e4c70f93198fff701a9bd4779916be Mon Sep 17 00:00:00 2001 From: Rougin Gutib Date: Fri, 15 Dec 2023 10:59:54 +0800 Subject: [PATCH] Change details in composer.json, README.md --- README.md | 2 +- composer.json | 6 +++--- src/Component/Collection.php | 5 ----- src/Middleware/StratigilityDispatcher.php | 6 +++--- 4 files changed, 7 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 16d8cf12..85f2123a 100644 --- a/README.md +++ b/README.md @@ -317,7 +317,7 @@ Please see [CHANGELOG][link-changelog] for more information what has changed rec ## Testing ``` bash -$ composer require filp/whoops league/container nikic/fast-route phroute/phroute rdlowrey/auryn twig/twig zendframework/zend-diactoros http-interop/http-middleware:^0.4.1 --dev +$ composer require filp/whoops league/container nikic/fast-route phroute/phroute rdlowrey/auryn twig/twig zendframework/zend-diactoros zendframework/zend-stratigility http-interop/http-middleware:^0.4.1 --dev $ composer test ``` diff --git a/composer.json b/composer.json index 19dc32e8..696195b4 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "rougin/slytherin", "description": "An extensible and SOLID-based PHP micro-framework.", - "keywords": ["php framework", "php library", "slytherin", "solid"], + "keywords": ["php framework", "php micro-framework", "php package"], "homepage": "https://roug.in/slytherin/", "license": "MIT", "authors": @@ -16,8 +16,8 @@ "require": { "php": ">=5.3.0", - "psr/container": "~1.0", - "psr/http-message": "~1.0" + "psr/http-message": "~1.0", + "psr/container": "~1.0" }, "require-dev": { diff --git a/src/Component/Collection.php b/src/Component/Collection.php index 63a38076..6c04ecdc 100644 --- a/src/Component/Collection.php +++ b/src/Component/Collection.php @@ -27,11 +27,6 @@ class Collection implements ContainerInterface */ protected $container; - /** - * @var mixed[] - */ - protected $items = array(); - public function __construct() { $this->container = new Container; diff --git a/src/Middleware/StratigilityDispatcher.php b/src/Middleware/StratigilityDispatcher.php index 69bd730d..d25efb22 100644 --- a/src/Middleware/StratigilityDispatcher.php +++ b/src/Middleware/StratigilityDispatcher.php @@ -84,6 +84,7 @@ public function process(ServerRequestInterface $request, HandlerInterface $handl } // @codeCoverageIgnoreEnd + /** @phpstan-ignore-next-line */ $this->zend->pipe($item); } @@ -101,10 +102,10 @@ public function process(ServerRequestInterface $request, HandlerInterface $handl /** @phpstan-ignore-next-line */ return $zend->process($request, $next); } - // @codeCoverageIgnoreEnd /** @phpstan-ignore-next-line */ return $zend($request, $response, $next); + // @codeCoverageIgnoreEnd } /** @@ -136,10 +137,10 @@ protected function setFactory(ResponseInterface $response) * * @param \Rougin\Slytherin\Middleware\MiddlewareInterface $item * @return callable + * @codeCoverageIgnore */ protected function setMiddleware(MiddlewareInterface $item) { - // @codeCoverageIgnoreStart if ($this->hasPsr()) { return function ($request, $handler) use ($item) @@ -147,7 +148,6 @@ protected function setMiddleware(MiddlewareInterface $item) return $item->process($request, new Interop($handler)); }; } - // @codeCoverageIgnoreEnd return function ($request, $response, $next) use ($item) {