Skip to content

Commit 116ff06

Browse files
committed
Add PHP 8.1 to the test matrix
1 parent b6407b2 commit 116ff06

File tree

2 files changed

+22
-6
lines changed

2 files changed

+22
-6
lines changed

.github/workflows/qa.yml

+18-5
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
strategy:
1111
matrix:
1212
operating-system: [ubuntu-latest]
13-
php-versions: ['7.1', '7.2', '7.3', '7.4', '8.0']
13+
php-versions: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1']
1414
runs-on: ${{ matrix.operating-system }}
1515
steps:
1616
- name: Checkout
@@ -52,7 +52,7 @@ jobs:
5252
- name: Setup PHP
5353
uses: shivammathur/setup-php@v2
5454
with:
55-
php-version: '7.4'
55+
php-version: '8.0'
5656
extensions: msgpack
5757
coverage: none
5858

@@ -83,9 +83,22 @@ jobs:
8383
- name: Setup PHP
8484
uses: shivammathur/setup-php@v2
8585
with:
86-
php-version: '7.4'
87-
tools: php-cs-fixer
86+
php-version: 8.0
8887
coverage: none
8988

89+
- name: Get composer cache directory
90+
id: composer-cache
91+
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
92+
93+
- name: Cache composer dependencies
94+
uses: actions/cache@v2
95+
with:
96+
path: ${{ steps.composer-cache.outputs.dir }}
97+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
98+
restore-keys: ${{ runner.os }}-composer-
99+
100+
- name: Install dependencies
101+
run: composer install --no-progress --prefer-dist --optimize-autoloader
102+
90103
- name: Check code style
91-
run: php-cs-fixer fix --dry-run --diff --verbose .
104+
run: vendor/bin/php-cs-fixer fix --dry-run --diff --verbose .

src/Client/TestDoubleClientBuilder.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ public function __construct(TestCase $testCase)
5151

5252
public static function buildDummy() : Client
5353
{
54-
/** @psalm-suppress PropertyNotSetInConstructor */
54+
/**
55+
* @psalm-suppress InternalMethod
56+
* @psalm-suppress PropertyNotSetInConstructor
57+
*/
5558
$self = new self(new class() extends TestCase {
5659
});
5760

0 commit comments

Comments
 (0)