From c5d4d12aadb01e17d6abda970344f64ef0addc05 Mon Sep 17 00:00:00 2001 From: Jan Lam Date: Mon, 3 Feb 2025 16:52:21 +0100 Subject: [PATCH 1/4] Add php8.3 support --- .github/workflows/main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index dd64097..cfb1bb0 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -12,7 +12,7 @@ jobs: strategy: matrix: - php-versions: ['7.3', '7.4', '8.0','8.1','8.2'] + php-versions: ['7.3', '7.4', '8.0','8.1','8.2','8.3'] name: PHP ${{ matrix.php-versions }} steps: - uses: actions/checkout@v2 From 8cfdbc89063a1192f965cca5327578bfa593b7d0 Mon Sep 17 00:00:00 2001 From: Jan Lam Date: Mon, 3 Feb 2025 16:52:42 +0100 Subject: [PATCH 2/4] Drop php8.0 and lower support --- .github/workflows/main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index cfb1bb0..2c12fcc 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -12,7 +12,7 @@ jobs: strategy: matrix: - php-versions: ['7.3', '7.4', '8.0','8.1','8.2','8.3'] + php-versions: ['8.1','8.2','8.3'] name: PHP ${{ matrix.php-versions }} steps: - uses: actions/checkout@v2 From 59ef4277a040c73100c45e6fc617bdce03f36f55 Mon Sep 17 00:00:00 2001 From: Jan Lam Date: Mon, 3 Feb 2025 16:58:02 +0100 Subject: [PATCH 3/4] Update actions/cache from v2 --- .github/workflows/main.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 2c12fcc..f6fedad 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -23,8 +23,9 @@ jobs: php-version: ${{ matrix.php-versions }} - name: Get composer cache directory id: composer-cache - run: echo "::set-output name=dir::$(composer config cache-files-dir)" - - uses: actions/cache@v2 + run: | + echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT + - uses: actions/cache@v4 with: path: ${{ steps.composer-cache.outputs.dir }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} From c40a2dce6f5bbffb6a5b5d11cd869d34ab3b07a7 Mon Sep 17 00:00:00 2001 From: Jan Lam Date: Tue, 4 Feb 2025 08:38:53 +0100 Subject: [PATCH 4/4] And the PHP version constraint itself --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 83575fb..a77ee7f 100644 --- a/composer.json +++ b/composer.json @@ -4,7 +4,7 @@ "description": "PHP_CodeSniffer tokenises PHP, JavaScript and CSS files and detects violations of a defined set of coding standards. Hostnet version", "license": "MIT", "require": { - "php": "^7.3|^8.0", + "php": "^8.1", "composer-plugin-api": "^2.0.0", "hostnet/path-composer-plugin-lib": "^1.0.5", "slevomat/coding-standard": "^8.6.2",