Skip to content

[Cache] Fix proxying third party PSR-6 cache items #60167

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 7, 2025

Conversation

PatchRanger
Copy link
Contributor

...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 #60160
License MIT

… should work with adapter of CacheItemPoolInterface other than \Symfony\Component\Cache\Adapter\AdapterInterface
@PatchRanger
Copy link
Contributor Author

I could be missing something, but the fail looks totally unrelated to the one-line-change I made 🤔

@stof
Copy link
Member

stof commented Apr 7, 2025

this change is legitimate, but it also indicates a gap in test coverage for our ProxyAdapter. The whole point of the ProxyAdapter is to adapt external PSR-6 implementations, but the tests of that class are adapting our own ArrayAdapter (and so won't detect cases where the implementation fails for third-party implementations).
@nicolas-grekas do you think we could easily improve the tests of the ProxyAdapter ?

@nicolas-grekas nicolas-grekas changed the title Fix #60160: ChainAdapter accepts CacheItemPoolInterface, so it should… Fix proxying third party PSR-6 cache items Apr 7, 2025
@carsonbot carsonbot changed the title Fix proxying third party PSR-6 cache items [Cache] Fix proxying third party PSR-6 cache items Apr 7, 2025
@nicolas-grekas
Copy link
Member

Thank you @PatchRanger.

@nicolas-grekas nicolas-grekas merged commit 31135c7 into symfony:6.4 Apr 7, 2025
10 of 11 checks passed
This was referenced May 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants