-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Provide PHP 8.0 support #18
Conversation
Note : i think the ci with travis ci is deprecated and laminas org is moving to github action. |
next will be to drop laminas/console before release ? |
@weierophinney ping 😃 |
A separate pull request is easier to review. All required steps can be found in this pull request: laminas/laminas-server#26 Thanks in advance! 👍 |
@froschdesign : see #19 |
Are there any changes to be made here? |
@FabianKoestring |
Looks like PR (#28) is ready . |
@Xerkus : this PR seem ok to me, the psalm job fail but is also fail in 3.5.X and this is not related to this PR.. |
Oof. Psalm merge did not go as planned. |
@fezfez lock file should be made on/for php 7.4 |
Dropping |
Yeah, i think it's a non sens to add PHP 8 support without dropping laminas-console, i've droped it in last commit but this PR would require a major version. |
@fezfez what we will have to do is split this into two parts. Pull everything else, except for enabling php 8, into a separate PR for 3.5. php 8 + dropped console would then target 4.0 |
9809df7
to
2d5d6d0
Compare
49dacb2
to
15f7a14
Compare
Signed-off-by: Stéphane Demonchaux <[email protected]>
composer.json
Outdated
"php": "^7.3 || ~8.0.0", | ||
"laminas/laminas-console": "^2.6", |
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.
Drop 8.0 in this PR as well, since it is not installable with laminas-console
That won't matter for composer but It will make clear for users that they need to upgrade to 4.0 for php 8
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.
I think the same strategy than laminas-cache can be used in this case. example
in composer.json
"replace": {
"llaminas/laminas-console": "*"
}
in this way, 3.5.x can be use with php 8, dont you think it wort it ?
Edit: never mind, it cant work because the autoload will break...
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.
I do not see a value in this. It is a dev dependency kind of package. Something else depending on it is quite unlikely.
@fezfez are you in our slack? I would like to request some chores for 3.5 before we move on to 4,0 |
Signed-off-by: Stéphane Demonchaux <[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.
🚢
composer.json
to provide support for PHP 8.0 by adding the constraint~8.0.0
composer.json
to drop support for PHP less than 7.3composer.json
to implement phpunit 9.3 which supports PHP 7.3+.travis.yml
to ignore platform requirements when installing composer dependencies (simply add--ignore-platform-reqs
toCOMPOSER_ARGS
env variable).travis.yml
to add PHP 8.0 to the matrix (NOTE: Do not allow failures as PHP 8.0 has a feature freeze since 2020-08-04!)I have also moved to
"laminas/laminas-coding-standard": "~2.1.0"
tests are working in php 8 with --ignore-platform-reqs