-
-
Notifications
You must be signed in to change notification settings - Fork 83
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
PHP 8.2 compability #142
Comments
Correct: this package does not yet support PHP 8.2. PHP 8.2 compatibility will be rolled out once all features from PHP 8.2 are implemented/tested: |
Now that the PHP 8.2 has reached Release Candidate phase, I think is a good moment to add the new features, and in the process, drop support for PHP 7.4. I'll personally try to invest some hours in the upcoming weeks to get some of the new 8.2 features in. |
I have a codebase with Symfony 6.1.x at hand, that does work fine under PHP 8.2. So i think the constraint is kind of erroneously applied? Meaning: Addendum: |
@guradia just cross-referencing: laminas/laminas-diactoros#117 (comment) As for PHP 8.2 support, hoping to throw some time at this soon: haven't found any yet, and I've already upgraded a few hundred other packages so far. Patience. |
@Ocramius ah, yes. This reasoning about SemVer is totally sound. And to be square with myself: Me going early adopter is obviously calling for trouble and is my problem alone. Having concluded that, i just ran the test suite for the library under PHP 8.2 and did the composer run with "--ignore-platform-req=php+" for the Symfony codebase. Since i am now being confident with that. May such a test run be of any contribution value? |
@guradia practically, there's a bunch of stuff in the In this component's case, "it runs" is not sufficient to declare PHP 8.2 compatibility. |
based on this comment, here is the path to release PHP 8.2 compat
Is there someone working on https://wiki.php.net/rfc/dnf_types ? |
@Ocramius i think you are working on https://wiki.php.net/rfc/dnf_types ? |
Ya, didn't commit anything yet though |
@fezfez if you want to do DNF types, the |
haha, okay i will probably in the week |
laminas-code technically has 2 PHP compatibility targets: for a host platform and for a target platform. Currently they are treated as unified but I don't see any good reason for them to be strictly aligned. My current generation target is 5.6 for example and I suspect it to be the most common use case, for people wanting to run their old generation code for old targets on the updated platform |
In fact, Readme states that this tool could potentially be used to generate code for other targets:
|
The problem with them being aligned is that this code extends Anyway, I think DNF types are the last bit missing. In fact: if this component encouters a DNF type at runtime, it currently crashes hard. |
@Ocramius thanks for the explanation |
@Ocramius any ETA when 8.2 Compatibility for laminas-code will be added. Almost all other laminas packages have added support for php 8.2! |
@faizan-shk the ETA is "whenever @Ocramius has a free weekend to throw a good chunk of time at this". |
It is done! |
Thank you, @Ocramius, for your great work! 👏 |
Feature Request
Summary
Due installing by composer i get next error while using PHP 8.2 RC:
- laminas/laminas-code 4.7.x-dev requires php >=7.4, <8.2 -> your php version (8.2.0beta1) does not satisfy that requirement.
Looks like this is last package which includes in Symfony 6.2 which not supports PHP 8.2
The text was updated successfully, but these errors were encountered: