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

Commit

Permalink
Fix variadic @param typehint format
Browse files Browse the repository at this point in the history
  • Loading branch information
Xerkus committed Jun 12, 2019
1 parent ec39fb1 commit 72f62e3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,3 @@ parameters:
- '#Parameter \#1 \$path of function Zend\\Stratigility\\path expects string, array\|callable\|Psr\\Http\\Server\\MiddlewareInterface\|Psr\\Http\\Server\\RequestHandlerInterface\|string given.#'
# @see src/Container/WhoopsFactory.php (zend-expressive supports Whoops 1.x)
- '#Call to an undefined method Whoops\\Handler\\JsonResponseHandler::onlyForAjaxRequests\(\).#'
# @see src/MiddlewareFactory
- '#PHPDoc tag @param for parameter \$middleware with type array\|string\|Zend\\Stratigility\\MiddlewarePipe is not subtype of native type array\<int, mixed\>#'
2 changes: 1 addition & 1 deletion src/MiddlewareFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public function lazy(string $middleware) : Middleware\LazyLoadingMiddleware
* Each item is passed to prepare() before being passed to the
* MiddlewarePipe instance the method returns.
*
* @param string|array|callable|MiddlewareInterface|RequestHandlerInterface $middleware
* @param string|array|callable|MiddlewareInterface|RequestHandlerInterface ...$middleware
*/
public function pipeline(...$middleware) : MiddlewarePipe
{
Expand Down

0 comments on commit 72f62e3

Please sign in to comment.