phplint icon indicating copy to clipboard operation
phplint copied to clipboard

Add support for upcoming version PHP 8.2

Open llaville opened this issue 3 years ago • 2 comments

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

llaville avatar Sep 19 '22 09:09 llaville

OK, just do it.

overtrue avatar Sep 19 '22 09:09 overtrue

Will do, this week :)

llaville avatar Sep 19 '22 09:09 llaville

My roadmap / Will do :

  • [x] initialize new branch 6.0 that will support future PHP 8.2 version.
  • [x] tag new application version to 6.0-dev until PHP 8.2 reach stable status (scheduled for November 24, 2022, see dedicated page on PHP Wiki)
  • [x] upgrade README page corresponding to new PHP version
  • [ ] add basic test to verify that application is able to lint a pure PHP 8.2 syntax

llaville avatar Sep 24 '22 13:09 llaville

Branch 8.2 was initialized by following commands :

export PHP_CS_FIXER_IGNORE_ENV=1
git push origin 8.2

llaville avatar Sep 24 '22 13:09 llaville

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

llaville avatar Sep 24 '22 14:09 llaville

README page was updated with commit 565340ee5d32df9042de3f12c960415cb24a99d3

llaville avatar Sep 24 '22 14:09 llaville

Updated source code with commit 1b8c2281add39cf441aaa714ff7486239249704f and 7fe6938672abf84a39b42f886f0c256dd6e5ff61

llaville avatar Sep 24 '22 14:09 llaville

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

llaville avatar Sep 24 '22 14:09 llaville

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)

llaville avatar Sep 24 '22 14:09 llaville

It is good,just do it.

overtrue avatar Sep 24 '22 14:09 overtrue

@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 !

llaville avatar Sep 24 '22 15:09 llaville

@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.

overtrue avatar Sep 26 '22 10:09 overtrue

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 avatar Oct 21 '22 13:10 llaville

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)

llaville avatar Dec 18 '22 13:12 llaville