Skip to content

Commit

Permalink
feat: restore PHP 8.1 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
JanWennrich committed Jul 30, 2024
1 parent 2b487d7 commit 25544fb
Show file tree
Hide file tree
Showing 4 changed files with 445 additions and 438 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php: [8.2, 8.3]
php: [8.1, 8.2, 8.3]
steps:
- uses: actions/checkout@v4

Expand All @@ -31,7 +31,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
php-version: 8.1

- name: Install dependencies
run: composer install
Expand All @@ -47,7 +47,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
php-version: 8.1

- name: Install dependencies
run: composer install
Expand Down
2 changes: 1 addition & 1 deletion .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
->setRiskyAllowed(true)
->setRules([
'@PHP80Migration:risky' => true,
'@PHP82Migration' => true,
'@PHP81Migration' => true,
'@PhpCsFixer' => true,
'@PER-CS2.0' => true,
'@PER-CS2.0:risky' => true,
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
}
],
"require": {
"php": ">=8.2"
"php": ">=8.1"
},
"require-dev": {
"phpunit/phpunit": "~11.0",
"phpunit/phpunit": "^10",
"phpstan/phpstan": "^1.10",
"friendsofphp/php-cs-fixer": "^3.0"
},
Expand Down
Loading

0 comments on commit 25544fb

Please sign in to comment.