Skip to content

Commit

Permalink
Change details in composer.json, README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rougin committed Dec 15, 2023
1 parent 5a8265f commit 450ebf1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -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":
Expand All @@ -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":
{
Expand Down
5 changes: 0 additions & 5 deletions src/Component/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ class Collection implements ContainerInterface
*/
protected $container;

/**
* @var mixed[]
*/
protected $items = array();

public function __construct()
{
$this->container = new Container;
Expand Down
6 changes: 3 additions & 3 deletions src/Middleware/StratigilityDispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ public function process(ServerRequestInterface $request, HandlerInterface $handl
}
// @codeCoverageIgnoreEnd

/** @phpstan-ignore-next-line */
$this->zend->pipe($item);
}

Expand All @@ -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
}

/**
Expand Down Expand Up @@ -136,18 +137,17 @@ 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)
{
return $item->process($request, new Interop($handler));
};
}
// @codeCoverageIgnoreEnd

return function ($request, $response, $next) use ($item)
{
Expand Down

0 comments on commit 450ebf1

Please sign in to comment.