diff --git a/.github/workflows/code-style.yml b/.github/workflows/code-style.yml index 8048ca0..d27f9b3 100644 --- a/.github/workflows/code-style.yml +++ b/.github/workflows/code-style.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: - php-version: ['8.4'] + php-version: ['8.4', '8.5'] steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index 06402db..747f442 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: - php-version: ['8.4'] + php-version: ['8.4', '8.5'] steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 88e58e7..c2d9885 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,7 +13,7 @@ jobs: strategy: fail-fast: false matrix: - php: ['8.4'] + php: ['8.4', '8.5'] steps: - name: Checkout @@ -50,6 +50,7 @@ jobs: --colors=always - name: Upload coverage to Codecov + if: matrix.php == '8.5' uses: codecov/codecov-action@v5 with: files: build/logs/clover.xml @@ -58,7 +59,7 @@ jobs: verbose: true - name: Upload test results to Codecov - if: ${{ !cancelled() }} + if: ${{ !cancelled() && matrix.php == '8.5' }} uses: codecov/test-results-action@v1 with: files: build/logs/junit.xml diff --git a/README.md b/README.md index 5f38f44..ef462f5 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ composer require valbeat/result ## Requirements -- PHP 8.4 or higher +- PHP 8.4 or higher (tested on PHP 8.4 and 8.5) - Composer ## Basic Usage diff --git a/phpstan.neon b/phpstan.neon index 14d1f29..ed05d1a 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -13,5 +13,7 @@ parameters: checkBenevolentUnionTypes: true checkUninitializedProperties: true - # PHP 8.4 features - phpVersion: 80400 \ No newline at end of file + # Supported PHP versions (8.4 - 8.5) + phpVersion: + min: 80400 + max: 80500 \ No newline at end of file