Skip to content

Commit bd0428d

Browse files
committed
Apply patch from cloudflare#275
1 parent 2d3f198 commit bd0428d

38 files changed

+296
-3302
lines changed

.github/workflows/lint.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,30 +10,31 @@ jobs:
1010
build:
1111

1212
runs-on: ubuntu-latest
13-
strategy:
14-
fail-fast: false
15-
matrix:
16-
php-versions: ['7.0', '7.1', '7.2', '7.3', '7.4']
13+
env:
14+
LOWEST: '0'
15+
PHP_VERSION: '8.3'
1716

1817
steps:
1918
- uses: actions/checkout@v2
2019

2120
- uses: shivammathur/setup-php@v2
2221
with:
23-
php-version: ${{ matrix.php-versions }}
22+
php-version: ${{ env.PHP_VERSION }}
2423

2524
- name: Cache Composer dependencies
2625
uses: actions/cache@v2
2726
with:
2827
path: /tmp/composer-cache
29-
key: ${{ runner.os }}-php${{ matrix.php-versions }}-${{ hashFiles('**/composer.lock') }}
28+
key: ${{ runner.os }}-php${{ env.PHP_VERSION }}-lowest${{ env.LOWEST }}-{{ hashFiles('**/composer.lock') }}
3029

3130
- name: Install dependencies
3231
uses: php-actions/composer@v5
32+
env:
33+
COMPOSER_PREFER_LOWEST: ${{ env.LOWEST }}
3334
with:
3435
command: install
35-
args: --prefer-dist --no-progress --no-suggest --verbose
36-
php_version: ${{ matrix.php-versions }}
36+
args: --prefer-dist --no-progress --prefer-stable --no-suggest --verbose
37+
php_version: ${{ env.PHP_VERSION }}
3738
version: 1
3839

3940
- name: Run lint

.github/workflows/test.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
php-versions: ['7.0', '7.1', '7.2', '7.3', '7.4']
16+
lowest: ['0', '1']
17+
php-versions: ['7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
1718

1819
steps:
1920
- uses: actions/checkout@v2
@@ -26,13 +27,15 @@ jobs:
2627
uses: actions/cache@v2
2728
with:
2829
path: /tmp/composer-cache
29-
key: ${{ runner.os }}-php${{ matrix.php-versions }}-${{ hashFiles('**/composer.lock') }}
30+
key: ${{ runner.os }}-php${{ matrix.php-versions }}-lowest${{ matrix.lowest }}-${{ hashFiles('**/composer.lock') }}
3031

3132
- name: Install dependencies
3233
uses: php-actions/composer@v5
34+
env:
35+
COMPOSER_PREFER_LOWEST: ${{ matrix.lowest }}
3336
with:
3437
command: install
35-
args: --prefer-dist --no-progress --no-suggest --verbose
38+
args: --prefer-dist --no-progress --prefer-stable --no-suggest --verbose
3639
php_version: ${{ matrix.php-versions }}
3740
version: 1
3841

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
/.idea
2-
/vendor/
2+
/composer.lock
3+
/vendor/
4+
/.phpunit.result.cache

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
"type": "library",
55
"require": {
66
"guzzlehttp/guzzle": "^7.0.1",
7-
"php": ">=7.2.5",
8-
"psr/http-message": "~1.0",
7+
"php": ">=7.3",
8+
"psr/http-message": "^1.0 || ^2.0",
99
"ext-json": "*"
1010
},
1111
"require-dev": {
12-
"phpunit/phpunit": "^5.7",
12+
"phpunit/phpunit": "^9.0",
1313
"phpmd/phpmd" : "@stable",
14-
"friendsofphp/php-cs-fixer": "^2.6"
14+
"friendsofphp/php-cs-fixer": "^3.0"
1515
},
1616
"license": "BSD-3-Clause",
1717
"authors": [

0 commit comments

Comments
 (0)