diff --git a/src/Client/RedmineClient.php b/src/Client/RedmineClient.php index 8f2c527..401b742 100644 --- a/src/Client/RedmineClient.php +++ b/src/Client/RedmineClient.php @@ -32,7 +32,7 @@ final class RedmineClient { $cacheKey = sprintf('%s_%s_%s', $api, $method, sha1(serialize($arguments))); - return $this->cache->get($cacheKey, function (ItemInterface $item): string { + return $this->cache->get($cacheKey, function (ItemInterface $item) use ($api, $method): array { $item->expiresAfter(3600); $item->tag([$api, $method]);