overtrue / phplint

:bug: A tool that can speed up linting of php files by running several lint processes at once.
MIT License
984 stars 118 forks source link

Add support for upcoming version PHP 8.2 #150

Closed llaville closed 1 year ago

llaville commented 2 years ago

We need to add a new major version 6.0 that will support upcoming PHP 8.2 scheduled for November, 24 2022.

overtrue commented 2 years ago

OK, just do it.

llaville commented 2 years ago

Will do, this week :)

llaville commented 2 years ago

My roadmap / Will do :

llaville commented 2 years ago

Branch 8.2 was initialized by following commands :

export PHP_CS_FIXER_IGNORE_ENV=1
git push origin 8.2
llaville commented 2 years ago

Commit a57c612731d5cd000df74b4d8770ec3ad304943b, bump new Application version to 6.0-dev and fix composer php requirements.

llaville commented 2 years ago

README page was updated with commit 565340ee5d32df9042de3f12c960415cb24a99d3

llaville commented 2 years ago

Updated source code with commit 1b8c2281add39cf441aaa714ff7486239249704f and 7fe6938672abf84a39b42f886f0c256dd6e5ff61

llaville commented 2 years ago

Now Docker version 8.2 is available, we can upgrade CI workflow with commit f9aeb16f4dcffcc50e0ba3b8dbc016b30f985412

llaville commented 2 years ago

Before to update CI and check a pure PHP 8.2 syntax file like this one

<?php
readonly class MyValueObject {
    public string $myValue;
}

we need to publish a 6.0-dev version to Packagist. @overtrue are your agree with all steps ?

Docker overtrue/phplint:8.2 still uses Application 5.3 (PHP 8.1 compatible)

overtrue commented 2 years ago

It is good,just do it.

llaville commented 2 years ago

@overtrue I've prepared a draft for release 6.0.0 (https://github.com/overtrue/phplint/releases/tag/untagged-410d5d58f3c17a7afd7b) If you're agree, you can confirm and change its status !

overtrue commented 2 years ago

@overtrue I've prepared a draft for release 6.0.0 (https://github.com/overtrue/phplint/releases/tag/untagged-410d5d58f3c17a7afd7b) If you're agree, you can confirm and change its status !

Hi, @llaville I've published it. Thanks.

llaville commented 1 year ago

As Release 6.0.0 should be considered as beta rather than a stable version, I've used recent feature to Explicitly Set the Latest Release, and update accordingly the 5.3.0 version.

/cc @overtrue FYI

llaville commented 1 year ago

Branch 8.2 is up-to-date to support PHP 8.2.0 stable version. Release 6.0.1 will come soon after resolving issue #164 affected all branches (versions)