-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
Allow PHP 8.4 in laminas-cache 3.x #357
Conversation
Signed-off-by: Dennis Riehle <[email protected]>
fc7ad18
to
593e04b
Compare
This is a follow-up on doctrine/DoctrineORMModule#767, on how PHP 8.4 support could be added to laminas-cache 3.x series. Technically it works, there are, however, some issues: Due to the architecture of laminas-cache, there is a dependency on the root project. Therefore, Composer needs to inflect the version of the root package and, obviously, fails to do so. The initial error in CI was:
So it seems to inflect 4.2.x-dev, though 3.13.x-dev is what the value should be. First of all, there was typo in the For now, I have set the version in With the version pinned, most CI checks work. The docs seem to be failed, but I'd call this unrelated. The Psalm baseline probably needs to be updated, which I haven't done yet and the backward compatibility check, I have no idea what this is about. 🤷 |
883eff2
to
333a898
Compare
I tried setting Therefore, I am surprised how the code in https://github.com/laminas/laminas-cache-storage-adapter-blackhole/blob/fe7bb4045fae6a71f8179744829aab6ddf47521e/.laminas-ci/composer-root-version.sh was supposed to work. In the same way, I am surprised how the code in this repository, using |
@gsteel @samsonasik Any suggestions on how to proceed here? |
Hi @driehle - In |
Great idea, that works like a charm! 👏 Now all tests except for the docs linting are passing. I won't fix the docs linting though, as Laminas only renders docs from the latest branch (i.e. currently |
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.
Thanks @driehle - If we can keep the diff just to dot files and tooling stuff, the merge-up will be cleaner 🤞
Also, yes to leaving the docs linting errors alone 👍
Signed-off-by: Dennis Riehle <[email protected]>
Signed-off-by: Dennis Riehle <[email protected]>
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.
Thank you @driehle 👍
As a follow-up on this PR and the release of laminas-cache 3.13.0 (thanks, @gsteel!), I have created the following PRs to add support for PHP 8.4 to the relevant storage adapters:
I would greatly appreciate, if you could have a look at them to get them merged and a release tagged. Thanks! |
I missed that we need laminas-serializer as well to get laminas-cache running with PHP 8.4. So there are two more PRs on laminas-serializer 2.x now, of which the first we'll need to merge as well. The second is rather just a suggestion. |
Description
This MR adds support for PHP 8.4 to laminas-cache v3. Adding support to the legacy version is essential, as laminas-cache v4 requires servicemanager v4 and many users cannot yet migrate to servicemanager v4, as quite a few packages in the MVC ecosystem yet lack support for servicemanager v4. Hence, it makes much sense to add support for PHP 8.4 to laminas-cache v3, given that this is pretty straight foward.