Skip to content

Commit

Permalink
PHP 8 support
Browse files Browse the repository at this point in the history
  • Loading branch information
PowerKiKi committed Apr 8, 2021
1 parent 196d3ae commit c1b9200
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ jobs:
- '7.2'
- '7.3'
- '7.4'
- '8.0'

name: PHP ${{ matrix.php-version }}

Expand All @@ -30,6 +31,10 @@ jobs:
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-

- name: Remove lock for PHP 8
if: matrix.php-version == '8.0'
run: rm composer.lock

- name: Install dependencies
run: composer install

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
}
},
"require": {
"php": "^7.2",
"php": "^7.2 || ^8.0",
"ext-bcmath": "*",
"ext-fileinfo": "*",
"ext-json": "*",
Expand Down
4 changes: 2 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c1b9200

Please sign in to comment.