diff --git a/.github/workflows/code-style.yml b/.github/workflows/code-style.yml index d27f9b3..f4243bb 100644 --- a/.github/workflows/code-style.yml +++ b/.github/workflows/code-style.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: - php-version: ['8.4', '8.5'] + php-version: ['8.3', '8.4', '8.5'] steps: - uses: actions/checkout@v4 @@ -28,9 +28,9 @@ jobs: uses: actions/cache@v3 with: path: vendor - key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} + key: ${{ runner.os }}-php-${{ matrix.php-version }}-${{ hashFiles('**/composer.json') }} restore-keys: | - ${{ runner.os }}-php- + ${{ runner.os }}-php-${{ matrix.php-version }}- - name: Install dependencies run: composer install --prefer-dist --no-progress diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index 747f442..d3ccece 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: - php-version: ['8.4', '8.5'] + php-version: ['8.3', '8.4', '8.5'] steps: - uses: actions/checkout@v4 @@ -32,9 +32,9 @@ jobs: uses: actions/cache@v3 with: path: vendor - key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} + key: ${{ runner.os }}-php-${{ matrix.php-version }}-${{ hashFiles('**/composer.json') }} restore-keys: | - ${{ runner.os }}-php- + ${{ runner.os }}-php-${{ matrix.php-version }}- - name: Install dependencies run: composer install --prefer-dist --no-progress diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c2d9885..eb167e0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,7 +13,7 @@ jobs: strategy: fail-fast: false matrix: - php: ['8.4', '8.5'] + php: ['8.3', '8.4', '8.5'] steps: - name: Checkout diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index bf1062e..f8a3dc7 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -11,10 +11,10 @@ ->ignoreDotFiles(true) ->ignoreVCS(true); -return new PhpCsFixer\Config() +return (new PhpCsFixer\Config()) ->setRules([ '@PSR12' => true, - '@PHP84Migration' => true, + '@PHP83Migration' => true, 'array_syntax' => ['syntax' => 'short'], 'blank_line_after_namespace' => true, 'blank_line_after_opening_tag' => true, diff --git a/README.md b/README.md index f28649f..22c1921 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ composer require valbeat/result ## Requirements -- PHP 8.4 or higher (tested on PHP 8.4 and 8.5) +- PHP 8.3 or higher (tested on PHP 8.3, 8.4 and 8.5) - Composer ## Basic Usage diff --git a/composer.json b/composer.json index e07f270..e806971 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ } ], "require": { - "php": "^8.4" + "php": "^8.3" }, "require-dev": { "phpstan/phpstan": "2.2.5", diff --git a/phpstan.neon b/phpstan.neon index ed05d1a..df6b243 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -13,7 +13,7 @@ parameters: checkBenevolentUnionTypes: true checkUninitializedProperties: true - # Supported PHP versions (8.4 - 8.5) + # Supported PHP versions (8.3 - 8.5) phpVersion: - min: 80400 + min: 80300 max: 80500 \ No newline at end of file