-
-
Notifications
You must be signed in to change notification settings - Fork 31
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 installation on PHP 8.1 #62
Conversation
@boesing could you check this one, when possible? Unsure about the polyfill implications :D |
@Ocramius https://github.com/laminas/laminas-cache-storage-adapter-memory/blob/2.0.x/src/Memory.php#L117-L122 Some more work on laminas-cache itself and the adapters is needed to provide full support of PHP 8.1. Another option is to remove the caching feature from the translator and use PSR 16 via a decorator – which is already planned for the next major version. But that means some more work and time. |
Ping @boesing |
Even tho this could work, upstream projects which rely on Since v3 of Regarding the polyfill, if it makes tests green and its only a dev autoloader quirk, I don't really care. But this won't change anything regarding the |
It is definitely only for the completion of the tests and we must inform that the cache support is not ready for 8.1. |
|
I think we can simplify the update and skip the unit tests with cache for PHP 8.1. @boesing What do you think? |
@froschdesign would be fine with both 👌🏻 |
Hi, I removed the laminas-cache memory adapter polyfill and disable related tests on Also, I added a commit to fix deprecated usage of null arguments in Is there something else I should/can do ? Regards |
@cedric-anne Thanks for your help! ❤️ |
For this one, I created a bug on PHP bugtracker, and I proposed a PR on PHP source. |
Any update on this PR? Would love to see it fixed so I can fix mezzio/mezzio-laminasrouter#9 which builds on laminas-i18n 8.1 support ;) |
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.
The new package laminas-cache-storage-deprecated-factory can be used to fix the problem with the deprecated storage factory.
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.
> - Downloading squizlabs/php_codesniffer (2.9.2)
This is very old, and likely the reason why you are getting failures on CS checks 🤔
The reason: Line 35 in fea1847
|
I'm working on it. Problem appears when dropping PHP 7.3 support. Maybe it should be done in another PR, as there are many CS fixes to do to be able to upgrade |
If it helps here then no problem! 👍 |
Signed-off-by: Cédric Anne <[email protected]>
Signed-off-by: Cédric Anne <[email protected]>
Signed-off-by: Cédric Anne <[email protected]>
It is OK now. I upgraded all dev dependencies to versions compatible with PHP PS: sorry for the force-push mess. |
@cedric-anne |
Description
Allow installation on PHP 8.1.
As discussed on #61 , a temporary polyfill was used in dev context to be able to test against PHP 8.1.