Skip to content

Commit

Permalink
Merge pull request #4 from koehnlein/feature/php8
Browse files Browse the repository at this point in the history
Make compatible with PHP 8
  • Loading branch information
koehnlein authored Aug 7, 2023
2 parents 5ff80ac + 6ff5640 commit e4d3413
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ jobs:
php-versions:
- '7.3'
- '7.4'
- '8.0'
- '8.1'
- '8.2'
composer-versions:
- 'v1'
- 'v2'
Expand Down Expand Up @@ -42,7 +45,7 @@ jobs:
- name: Require Composer@v2
if: ${{ matrix.composer-versions == 'v2' }}
run: |
composer require "composer/composer:2.0.x-dev" --dev --no-update
composer require "composer/composer:^2.0" --dev --no-update
- name: Install
run: |
Expand Down
2 changes: 1 addition & 1 deletion .php_cs.dist → .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
LICENSE file that was distributed with this source code.
EOF;

return PhpCsFixer\Config::create()
return (new PhpCsFixer\Config())
->setRiskyAllowed(true)
->setRules([
'@PSR2' => true,
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"prefer-stable": true,
"license": "MIT",
"require": {
"php": "^7.3",
"php": "^7.3 || ^8.0",
"composer-plugin-api": "^1.1 || ^2.0"
},
"require-dev": {
Expand Down

0 comments on commit e4d3413

Please sign in to comment.