Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support PHP 8.1 #2929

Merged
merged 1 commit into from Sep 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
22 changes: 14 additions & 8 deletions .github/workflows/ci.yml
Expand Up @@ -31,7 +31,7 @@ jobs:
uses: actions/checkout@v2

- name: Download dependencies
run: composer update --no-interaction --no-progress --prefer-stable --prefer-lowest --prefer-dist
run: composer update --no-interaction --no-progress --prefer-stable --prefer-lowest

- name: Run tests
run: make test
Expand All @@ -42,15 +42,13 @@ jobs:
strategy:
max-parallel: 10
matrix:
php: ['7.2', '7.3', '7.4', '8.0']
psr7: ['^1.7']
php: ['7.2', '7.3', '7.4', '8.0', '8.1']
psr7: ['^1.7', '^2.0']
include:
- php: '7.4'
psr7: '^1.7@dev'
- php: '7.4'
psr7: '^2.0@dev'
- php: '7.4'
psr7: '^2.0@beta'

steps:
- name: Set up PHP
Expand All @@ -71,10 +69,14 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Mimic PHP 8.0
run: composer config platform.php 8.0.999
if: matrix.php > 8

- name: Download dependencies
run: |
composer require --no-update "guzzlehttp/psr7:${{ matrix.psr7 }}"
composer update --no-interaction --no-progress --prefer-dist
composer update --no-interaction --no-progress

- name: Run tests
run: make test
Expand All @@ -85,7 +87,7 @@ jobs:
strategy:
max-parallel: 10
matrix:
php: ['7.2', '7.3', '7.4', '8.0']
php: ['7.2', '7.3', '7.4', '8.0', '8.1']

steps:
- name: Set up PHP
Expand All @@ -106,8 +108,12 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Mimic PHP 8.0
run: composer config platform.php 8.0.999
if: matrix.php > 8

- name: Download dependencies
run: composer update --no-interaction --no-progress --prefer-dist
run: composer update --no-interaction --no-progress

- name: Start test servers
shell: bash
Expand Down
1 change: 1 addition & 0 deletions src/Handler/MockHandler.php
Expand Up @@ -183,6 +183,7 @@ public function getLastOptions(): array
/**
* Returns the number of remaining items in the queue.
*/
#[\ReturnTypeWillChange]
public function count(): int
{
return \count($this->queue);
Expand Down