Skip to content

Commit 3626a58

Browse files
authored
Fix docBlock for CacheInterface::getOrSet() method
1 parent 9b8b207 commit 3626a58

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/CacheInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function psr(): \Psr\SimpleCache\CacheInterface;
3434
* ```php
3535
* public function getTopProducts(int $count = 10) {
3636
* $key = ['top-products', $count];
37-
* return $this->cache->getOrSet($key, function (\Yiisoft\Cache\CacheInterface $cache) use ($count) {
37+
* return $this->cache->getOrSet($key, function (\Psr\SimpleCache\CacheInterface $cache) use ($count) {
3838
* return $this->getTopNProductsFromDatabase($count);
3939
* }, 1000);
4040
* }

0 commit comments

Comments
 (0)