8000 bug #60167 [Cache] Fix proxying third party PSR-6 cache items (Dmitry… · wkania/symfony@31135c7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 31135c7

Browse files
bug symfony#60167 [Cache] Fix proxying third party PSR-6 cache items (Dmitry Danilson)
This PR was merged into the 6.4 branch. Discussion ---------- [Cache] Fix proxying third party PSR-6 cache items ...work with adapter of CacheItemPoolInterface other than \Symfony\Component\Cache\Adapter\AdapterInterface | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | Fix symfony#60160 | License | MIT Commits ------- 74debe4 Fix symfony#60160: ChainAdapter accepts CacheItemPoolInterface, so it should work with adapter of CacheItemPoolInterface other than \Symfony\Component\Cache\Adapter\AdapterInterface
2 parents ea7ac25 + 74debe4 commit 31135c7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Symfony/Component/Cache/CacheItem.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
namespace Symfony\Component\Cache;
1313

14+
use Psr\Cache\CacheItemInterface;
1415
use Psr\Log\LoggerInterface;
1516
use Symfony\Component\Cache\Exception\InvalidArgumentException;
1617
use Symfony\Component\Cache\Exception\LogicException;
@@ -30,7 +31,7 @@ final class CacheItem implements ItemInterface
3031
protected float|int|null $expiry = null;
3132
protected array $metadata = [];
3233
protected array $newMetadata = [];
33-
protected ?ItemInterface $innerItem = null;
34+
protected ?CacheItemInterface $innerItem = null;
3435
protected ?string $poolHash = null;
3536
protected bool $isTaggable = false;
3637

0 commit comments

Comments
 (0)
0