From ad459bc9bd35eafcf120f2c8c3f0082d27d2b3aa Mon Sep 17 00:00:00 2001 From: Davide Bellettini Date: Sat, 26 Sep 2015 15:43:16 +0200 Subject: [PATCH] Use less strict type hint --- src/CacheMiddleware.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/CacheMiddleware.php b/src/CacheMiddleware.php index 9e707e34..76436c85 100644 --- a/src/CacheMiddleware.php +++ b/src/CacheMiddleware.php @@ -102,11 +102,11 @@ public function purgeReValidation() } /** - * @param \Closure $handler + * @param callable $handler * - * @return \Closure + * @return callable */ - public function __invoke(\Closure $handler) + public function __invoke(callable $handler) { return function (RequestInterface $request, array $options) use (&$handler) { if (!isset($this->httpMethods[strtoupper($request->getMethod())])) {