Skip to content

Commit

Permalink
Support PHP 8.2
Browse files Browse the repository at this point in the history
Also updated to PHP 8.0 with Rector.
  • Loading branch information
jaylinski committed Apr 16, 2023
1 parent 7aae1d2 commit d097b24
Show file tree
Hide file tree
Showing 42 changed files with 608 additions and 1,065 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
fail-fast: false
matrix:
operating-system: ['ubuntu-latest']
php-version: ['7.3', '7.4', '8.0', '8.1']
composer-version: ['composer:v1', 'composer:v2']
php-version: ['8.0', '8.1', '8.2']
composer-version: ['composer:v2']

steps:
- name: Checkout
Expand All @@ -26,7 +26,7 @@ jobs:
extensions: mbstring, xdebug

- name: Install dependencies
run: composer install --no-progress --no-suggest --prefer-dist
run: composer install --no-progress --prefer-dist

- name: Analyse
run: composer run analyse
Expand Down
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@
}
],
"require": {
"php": ">=7.3",
"php": ">=8.0",
"ext-dom": "*",
"ext-libxml": "*",
"ext-xmlwriter": "*"
},
"require-dev": {
"friends-of-phpspec/phpspec-code-coverage": "^6.1",
"friendsofphp/php-cs-fixer": "^3.4",
"phpspec/phpspec": "^7.0",
"phpstan/phpstan": "^1.2"
"friends-of-phpspec/phpspec-code-coverage": "^6.3",
"friendsofphp/php-cs-fixer": "^3.16",
"phpspec/phpspec": "^7.3",
"phpstan/phpstan": "^1.10"
},
"autoload": {
"psr-4": {
Expand All @@ -32,11 +32,11 @@
"test-ci": "phpspec run --no-interaction --verbose",
"lint": "php-cs-fixer fix src --rules=@PSR12",
"lint-ci": "php-cs-fixer fix src --dry-run --rules=@PSR12",
"analyse": "phpstan analyse --level 4 src"
"analyse": "phpstan analyse --level 7 src"
},
"config": {
"platform": {
"php": "7.3"
"php": "8.0.28"
},
"sort-packages": true
}
Expand Down
Loading

0 comments on commit d097b24

Please sign in to comment.