overtrue / phplint

:bug: A tool that can speed up linting of php files by running several lint processes at once.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support for upcoming version PHP 8.2

llaville opened this issue · comments

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

OK, just do it.

Will do, this week :)

My roadmap / Will do :

  • initialize new branch 6.0 that will support future PHP 8.2 version.
  • 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)
  • 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

Branch 8.2 was initialized by following commands :

export PHP_CS_FIXER_IGNORE_ENV=1
git push origin 8.2

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

README page was updated with commit 565340e

Updated source code with commit 1b8c228 and 7fe6938

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

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)

It is good,just do it.

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

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

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)