Skip to content
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

bump min php versions #215

Closed
staabm opened this issue Jul 25, 2022 · 6 comments
Closed

bump min php versions #215

staabm opened this issue Jul 25, 2022 · 6 comments

Comments

@staabm
Copy link
Member

staabm commented Jul 25, 2022

I think we should strip down the supported php version matrix

what do you guys think about dropping at least 7.1/7.2 ?

see https://www.php.net/supported-versions.php

@phil-davis
Copy link
Contributor

IMO just support PHP 7.3 and up.
7.3 has been out of official support for security patches since late last year (about 7 months ago now). Maybe support for 7.3 can be dropped around the end of this year?

One benefit of dropping the older minor versions of PHP is that gradually more parameter and return types can be used, and new functions relied-on etc.

@tacman
Copy link

tacman commented Aug 10, 2022

Since 7.3 is at EOL, what about bumping the version and requiring 7.4? Typed properties in classes are great, among other things.

@phil-davis
Copy link
Contributor

Since 7.3 is at EOL, what about bumping the version and requiring 7.4? Typed properties in classes are great, among other things.

Yes, we are about at that point anyway. Various consumers of these sabre-io repos that I am familiar with have either dropped, or are soon to drop, PHP 7.3 support.

We could make a branch from current master that can keep the current PHP support and if any interesting/critical/security patches are needed then we can backport patches to that branch. And then in master develop PHP 7.4+ code, put all the possible type declarations in parameters, function returns, variables, removing deprecated stuff... and release as a new major version. That avoids the need to think hard about strict backward-compatibility for methods of classes etc that start having stricter formal interfaces, and for which there could be implementations that extend the class and now have to also add the types.

For the future, some time in 2023, we can discuss dropping PHP 7.4. And that may or may not cause another major version bump, depending on what extra things happened in PHP 8.0+ that are not available in PHP 7.4. But that can be a separate discussion.

@staabm
Copy link
Member Author

staabm commented Aug 11, 2022

Agree 👍

@phil-davis
Copy link
Contributor

Major version 3 https:/sabre-io/xml/releases/tag/3.0.0 has been released here.
https:/sabre-io/uri has minor release https:/sabre-io/uri/releases/tag/2.3.0 - there was no need to cause a BC-break there, so no need for a major version bump.

I am looking at vobject now. I will leave this issue open, and update as I progress up the tree to finally get sabre/dav sorted out.

@DeepDiver1975
Copy link
Member

7.4 is min -> close

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants