Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/code-style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
}
],
"require": {
"php": "^8.4"
"php": "^8.3"
},
"require-dev": {
"phpstan/phpstan": "2.2.5",
Expand Down
4 changes: 2 additions & 2 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading