Skip to content

Commit 622df6a

Browse files
Added support for PHP 8.1
1 parent 5f702d0 commit 622df6a

File tree

5 files changed

+27
-15
lines changed

5 files changed

+27
-15
lines changed

.github/workflows/tests.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
strategy:
1313
matrix:
14-
php: ['7.1', '7.2', '7.3', '7.4', '8.0']
14+
php: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1']
1515

1616
steps:
1717
- name: Checkout Code
@@ -27,6 +27,10 @@ jobs:
2727
- name: Setup Problem Matchers
2828
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
2929

30+
- name: Mimic PHP 8.0
31+
run: composer config platform.php 8.0.999
32+
if: matrix.php > 8
33+
3034
- name: Install Latest Dependencies
3135
uses: nick-invision/retry@v1
3236
with:
@@ -43,7 +47,7 @@ jobs:
4347

4448
strategy:
4549
matrix:
46-
php: ['7.1', '7.2', '7.3', '7.4', '8.0']
50+
php: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1']
4751

4852
steps:
4953
- name: Checkout Code
@@ -59,6 +63,10 @@ jobs:
5963
- name: Setup Problem Matchers
6064
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
6165

66+
- name: Mimic PHP 8.0
67+
run: composer config platform.php 8.0.999
68+
if: matrix.php > 8
69+
6270
- name: Install Lowest Dependencies
6371
uses: nick-invision/retry@v1
6472
with:

composer.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@
1818
"require": {
1919
"php": "^7.1.3 || ^8.0",
2020
"ext-pcre": "*",
21-
"graham-campbell/result-type": "^1.0.1",
22-
"phpoption/phpoption": "^1.7.4",
23-
"symfony/polyfill-ctype": "^1.17",
24-
"symfony/polyfill-mbstring": "^1.17",
25-
"symfony/polyfill-php80": "^1.17"
21+
"graham-campbell/result-type": "^1.0.2",
22+
"phpoption/phpoption": "^1.8",
23+
"symfony/polyfill-ctype": "^1.23",
24+
"symfony/polyfill-mbstring": "^1.23.1",
25+
"symfony/polyfill-php80": "^1.23.1"
2626
},
2727
"require-dev": {
2828
"ext-filter": "*",
2929
"bamarni/composer-bin-plugin": "^1.4.1",
30-
"phpunit/phpunit": "^7.5.20 || ^8.5.14 || ^9.5.1"
30+
"phpunit/phpunit": "^7.5.20 || ^8.5.20 || ^9.5.8"
3131
},
3232
"autoload": {
3333
"psr-4": {
@@ -47,7 +47,7 @@
4747
},
4848
"extra": {
4949
"branch-alias": {
50-
"dev-master": "5.3-dev"
50+
"dev-master": "5.4-dev"
5151
}
5252
}
5353
}

psalm-baseline.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<files psalm-version="4.3.1@2feba22a005a18bf31d4c7b9bdb9252c73897476">
3-
<file src="src/Repository/RepositoryBuilder.php">
2+
<files psalm-version="4.x-dev@">
3+
<file src="src/Parser/EntryParser.php">
44
<InvalidArgument occurrences="1">
55
<code>flatMap</code>
66
</InvalidArgument>
7+
</file>
8+
<file src="src/Repository/RepositoryBuilder.php">
79
<InvalidStringClass occurrences="3">
810
<code>$adapter::create()</code>
911
<code>$reader::create()</code>

vendor-bin/phpstan/composer.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{
22
"require": {
3-
"phpstan/phpstan": "0.12.88",
3+
"php": "^7.4",
4+
"phpstan/phpstan": "0.12.98",
45
"phpstan/extension-installer": "1.1.0",
56
"phpstan/phpstan-deprecation-rules": "0.12.6",
6-
"phpstan/phpstan-phpunit": "0.12.19",
7-
"phpstan/phpstan-strict-rules": "0.12.9",
7+
"phpstan/phpstan-phpunit": "0.12.22",
8+
"phpstan/phpstan-strict-rules": "0.12.11",
89
"thecodingmachine/phpstan-strict-rules": "0.12.1"
910
},
1011
"config": {

vendor-bin/psalm/composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"require": {
3-
"psalm/phar": "4.7.1"
3+
"php": "^7.4",
4+
"psalm/phar": "4.9.3"
45
},
56
"config": {
67
"preferred-install": "dist"

0 commit comments

Comments
 (0)