Skip to content

Commit 9fe5d78

Browse files
committed
wip
1 parent e5197cb commit 9fe5d78

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/Tracing/Cache/TraceableCacheAdapterTrait.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,13 @@ public function getItem($key): CacheItem
4646

4747
/**
4848
* {@inheritdoc}
49-
* @return iterable<string, CacheItemInterface>
49+
*
50+
* @psalm-return iterable<string, \Symfony\Component\Cache\CacheItem>
51+
* @phpstan-return iterable<string, \Symfony\Component\Cache\CacheItem>
5052
*/
5153
public function getItems(array $keys = []): iterable
5254
{
55+
/** @psalm-return iterable<string, \Symfony\Component\Cache\CacheItem> */
5356
return $this->traceFunction('cache.get', function () use ($keys): iterable {
5457
return $this->decoratedAdapter->getItems($keys);
5558
});
@@ -224,9 +227,9 @@ private function traceFunction(string $spanOperation, \Closure $callback, ?strin
224227
*
225228
* Use this method if you want to instrument {@see CacheInterface::get()}.
226229
*
227-
* @param string $key
228-
* @param callable $callback
229-
* @param float|null $beta
230+
* @param string $key
231+
* @param callable $callback
232+
* @param float|null $beta
230233
* @param array<int|string,mixed>|null $metadata
231234
*
232235
* @return mixed

0 commit comments

Comments
 (0)