Skip to content

Support psr/cache 2 and 3 #4117

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 3 commits into from
Mar 8, 2021
Merged

Conversation

derrabus
Copy link
Contributor

@derrabus derrabus commented Mar 5, 2021

Q A
Branch? 2.6
Bug fix? no
New feature? no
Deprecations? no
Tickets N/A
License MIT
Doc PR N/A

The psr/cache interfaces have been updated with type declarations. This change should not make a difference for API platform because it only consumes cache implementations and does not provide its own cache implementations.

This PR also contains changes to a couple of test cases related to caching: Prophecy seems to be confused by the fact that the updated CacheException interface extends Throwable. Since the affected mocks can easily be replaced with a simple anonymous class, I did just that.

@alanpoulain alanpoulain merged commit c3385d2 into api-platform:2.6 Mar 8, 2021
@alanpoulain
Copy link
Member

Thanks @derrabus!

@derrabus derrabus deleted the psr-cache-2 branch March 8, 2021 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants