Skip to content

Commit

Permalink
Merge pull request #577 from hyraiq/php8-support
Browse files Browse the repository at this point in the history
PHP 8 support
  • Loading branch information
alexislefebvre authored Feb 24, 2021
2 parents 2c81a43 + 202c9cc commit 9797828
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,17 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: ['7.2', '7.3', '7.4']
php-version: ['7.2', '7.3', '7.4', '8.0']
symfony-version: ['5.1']
include:
- php-version: 7.2
symfony-version: "^4.4"
- php-version: 7.3
symfony-version: "^4.4"
- php-version: 7.4
symfony-version: "^4.4"
- php-version: 8.0
symfony-version: "^4.4"

steps:
- name: Checkout
Expand Down
19 changes: 8 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
dist: trusty
dist: xenial

language: php

php:
- 7.1
- 7.2
- 7.3
- 7.4
- 8.0

env:
- SYMFONY_VERSION="^5.1"
Expand All @@ -19,17 +19,14 @@ cache:

matrix:
include:
- php: 7.1
env: SYMFONY_VERSION="^3.4.33" COMPOSER_FLAGS="--prefer-lowest"
- php: 7.2
env: SYMFONY_VERSION="3.4.*"
- php: 7.2
env: SYMFONY_VERSION="4.4.*" PHPUNIT_VERSION="7.5.*"
- php: 7.2
env: SYMFONY_VERSION="4.4.*"
exclude:
- php: 7.1
env: SYMFONY_VERSION="^5.1"
- php: 7.3
env: SYMFONY_VERSION="4.4.*"
- php: 7.4
env: SYMFONY_VERSION="4.4.*"
- php: 8.0
env: SYMFONY_VERSION="4.4.*"
fast_finish: true

before_install:
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}
],
"require": {
"php": "^7.1",
"php": "^7.2 || ^8.0",
"doctrine/annotations": "^1.3",
"phpunit/phpunit": "^7.5.0 || ^8.0 || ^9.0",
"symfony/browser-kit": "^3.4 || ^4.4 || ^5.1",
Expand Down

0 comments on commit 9797828

Please sign in to comment.