From 28c944467b4eccda204aecdb79c62a9d390e0bda Mon Sep 17 00:00:00 2001 From: jrfnl Date: Sun, 19 Jun 2022 18:39:18 +0200 Subject: [PATCH] GH Actions: run lint against PHP 8.2 The first alpha of PHP 8.2 was released nearly two weeks ago, so let's start linting against PHP 8.2 Includes enabling the `--show-deprecated` option. While rare, there are some deprecations which PHP can show when a file is being linted. By default these are ignored by PHP-Parallel-Lint. --- .github/workflows/continuous-integration.yml | 1 + composer.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index d0149602..cdfad56d 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -21,6 +21,7 @@ jobs: - "7.4" - "8.0" - "8.1" + - "8.2" steps: - uses: "actions/checkout@v2" - uses: "shivammathur/setup-php@v2" diff --git a/composer.json b/composer.json index 91e91e4b..8b35ab47 100644 --- a/composer.json +++ b/composer.json @@ -29,7 +29,7 @@ "ext-zlib": "Zlib extension is required for archive modules and compressed metadata." }, "scripts": { - "lint": "parallel-lint --exclude vendor --exclude .git .", + "lint": "parallel-lint --show-deprecated --exclude vendor --exclude .git .", "test": [ "composer lint" ]