From 070331e5b9caf153a655489fc0e4c3b79aa0046c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=9D=E3=82=89?= Date: Sat, 13 Jan 2024 20:31:24 +0800 Subject: [PATCH] feat: supports PHP 8.4 --- .github/workflows/ci.yml | 2 +- src/PHPFmt.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f0a8bdb..fe8e6c5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,7 @@ jobs: strategy: matrix: os: [macos-latest, windows-latest] - php-version: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3'] + php-version: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4'] name: Test on ${{ matrix.os }} & PHP ${{ matrix.php-version }} steps: - name: Checkout diff --git a/src/PHPFmt.ts b/src/PHPFmt.ts index d10a349..02a368e 100644 --- a/src/PHPFmt.ts +++ b/src/PHPFmt.ts @@ -222,7 +222,7 @@ export class PHPFmt { } else { if ( compare(phpVersion, '5.6.0', '<') || - compare(phpVersion, '8.4.0, '>') + compare(phpVersion, '8.4.0', '>') ) { throw new PHPFmtError('PHP version < 5.6 or > 8.4'); }