Codor icon indicating copy to clipboard operation
Codor copied to clipboard

Upgrade to php8.1

Open kevin-schmitt opened this issue 3 years ago • 2 comments

Hello,

They are new things on php very interesting for project https://www.php.net/releases/8.1/en.php We can update ? What is the roadmap ? This project is always used by the community ?

Thanks

kevin-schmitt avatar Aug 12 '22 10:08 kevin-schmitt

I guess we're talking about the minimum PHP version required here (7.1.3 for now).

We can update ?

I don't think moving straight to PHP 8.1 is wise for a project like Codor.

Since Codor is a set of rules for PHP_CodeSniffer, I would be ok to raise the minimum version to 7.2 since it will be the new requirement for the next major release (4.0).

There is still the possibility to do like PHPStan or Rector. They are compatible with PHP 7.2 but they develop with PHP 8+. It would require a lot of work though and I don't think it's worth the effort for this project.

What is the roadmap ?

There is no roadmap, but we still accept contributions.

This project is always used by the community ?

I think Codor is mainly used by churn-php. I can't say for the rest of the community but you can also take a look at the stats in Packagist.

villfa avatar Aug 12 '22 13:08 villfa

Here another approach to consider: https://tomasvotruba.com/blog/how-to-release-php-81-and-72-package-in-the-same-repository/

villfa avatar Jan 04 '23 13:01 villfa