-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Support for PSR-6 result caches #8996
Support for PSR-6 result caches #8996
Conversation
@@ -24,6 +24,8 @@ jobs: | |||
include: | |||
- php-version: "8.0" | |||
dbal-version: "2.13" | |||
- php-version: "8.0" | |||
dbal-version: "3.2@dev" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What should happen to this when 3.2.0 is released? Should we change it to whatever the latest 3.1.x is then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We heavily depend on DBAL. I think we should always have a CI job that checks against a dev version of DBAL. When 3.2.0 is released, this job will test against 3.3-dev automatically and I think that's fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a syntax we could use to avoid this 2
being hardcoded here? It's a bit misleading. 3@dev
maybe?
I pushed an extra commit with tests for some of the uncovered paths, let's see if the build still passes. |
cd1f621
to
e47dddc
Compare
9db2e03
to
7291489
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@derrabus please review my commit and fix it up if it looks good to you
Co-authored-by: Grégoire Paris <[email protected]>
7291489
to
996fa77
Compare
Done! |
Thanks @derrabus ! |
Follows doctrine/dbal#4620
DBAL 3.2 will deprecate Doctrine Cache in favor of PSR-6 for result caches. This PR makes sure we call the non-deprecated methods.
I've also added a CI job that runs against a dev snapshot of DBAL, so we can actually test my changes.