Update dependencies

This commit is contained in:
Sebastian Meyer 2024-01-22 21:13:28 +01:00
parent f238ebf527
commit e473341f46
2 changed files with 4 additions and 4 deletions

View File

@ -30,14 +30,14 @@
"require": {
"php": "^8.0",
"guzzlehttp/psr7": "^2.6",
"opencultureconsulting/basics": "^1.0",
"opencultureconsulting/basics": "^1.1",
"psr/http-server-handler": "^1.0",
"psr/http-server-middleware": "^1.0"
},
"require-dev": {
"phpstan/phpstan": "^1.10",
"phpstan/phpstan-strict-rules": "^1.5",
"friendsofphp/php-cs-fixer": "^3.45"
"friendsofphp/php-cs-fixer": "^3.48"
},
"provide": {
"psr/http-server-handler-implementation": "1.0",

View File

@ -40,12 +40,12 @@ class MiddlewareQueue extends StrictQueue
/**
* Create a queue of PSR-15 compatible middlewares.
* @see \OCC\Basics\DataStructures\StrictQueue::__construct()
*
* @param iterable<MiddlewareInterface> $middlewares Initial set of PSR-15 middlewares
*/
private function __construct(iterable $middlewares = [])
{
parent::__construct($middlewares, [MiddlewareInterface::class]);
parent::__construct([MiddlewareInterface::class]);
$this->append(...$middlewares);
}
}