Skip to content

Commit

Permalink
PHP 8 support
Browse files Browse the repository at this point in the history
  • Loading branch information
PowerKiKi committed Feb 19, 2021
1 parent 074d959 commit eb49c1f
Show file tree
Hide file tree
Showing 3 changed files with 120 additions and 115 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 @@ -27,7 +27,7 @@
}
},
"require": {
"php": "^7.2",
"php": "^7.2 || ^8.0",
"ext-bcmath": "*",
"ext-fileinfo": "*",
"ext-json": "*",
Expand Down
Loading

0 comments on commit eb49c1f

Please sign in to comment.