Skip to content

Commit 9d00674

Browse files
Support PHP 8.1 (#435)
1 parent 93c36e7 commit 9d00674

File tree

4 files changed

+9
-23
lines changed

4 files changed

+9
-23
lines changed

.github/workflows/bc.yml

-16
This file was deleted.

.github/workflows/ci.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
strategy:
1111
max-parallel: 10
1212
matrix:
13-
php: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4']
13+
php: ['5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1']
1414

1515
steps:
1616
- name: Set up PHP
@@ -23,8 +23,12 @@ jobs:
2323
- name: Checkout code
2424
uses: actions/checkout@v2
2525

26+
- name: Mimic PHP 8.0
27+
run: composer config platform.php 8.0.999
28+
if: matrix.php > 8
29+
2630
- name: Install dependencies
27-
run: composer update --no-interaction --no-progress --prefer-dist
31+
run: composer update --no-interaction --no-progress
2832

2933
- name: Run tests
3034
run: make test

.github/workflows/integration.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Download dependencies
2727
uses: ramsey/composer-install@v1
2828
with:
29-
composer-options: --no-interaction --prefer-dist --optimize-autoloader
29+
composer-options: --no-interaction --optimize-autoloader
3030

3131
- name: Start server
3232
run: php -S 127.0.0.1:10002 tests/Integration/server.php &

.travis.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,15 @@ matrix:
1212
- php: 5.5.9
1313
dist: trusty
1414
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest"
15-
- php: 5.5
16-
dist: trusty
1715
fast_finish: true
1816

1917
before_install:
2018
- if [[ "$TRAVIS_PHP_VERSION" != "hhvm-3.24" ]]; then echo "xdebug.overload_var_dump = 1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi
2119
- if [[ "$TRAVIS_PHP_VERSION" == "hhvm-3.24" ]]; then travis_retry composer require "phpunit/phpunit:^5.7.27" --dev --no-update -n; fi
2220

2321
install:
24-
- if [[ "$TRAVIS_PHP_VERSION" != "nightly" ]]; then travis_retry composer update --prefer-dist; fi
25-
- if [[ "$TRAVIS_PHP_VERSION" == "nightly" ]]; then travis_retry composer update --prefer-dist --ignore-platform-reqs; fi
22+
- if [[ "$TRAVIS_PHP_VERSION" != "nightly" ]]; then travis_retry composer update; fi
23+
- if [[ "$TRAVIS_PHP_VERSION" == "nightly" ]]; then travis_retry composer update --ignore-platform-reqs; fi
2624

2725
script:
2826
- make test

0 commit comments

Comments
 (0)