Skip to content

Commit b82d2d1

Browse files
Added support for PHP 8.1 and Symfony 6
1 parent 8475b97 commit b82d2d1

File tree

3 files changed

+34
-10
lines changed

3 files changed

+34
-10
lines changed

.github/workflows/tests.yml

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,27 @@ jobs:
1111

1212
strategy:
1313
matrix:
14-
php: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0']
15-
symfony: ['3', '4', '5']
14+
php: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1']
15+
symfony: ['3', '4', '5', '6']
1616
exclude:
1717
- php: '7.0'
1818
symfony: '4'
1919
- php: '7.0'
2020
symfony: '5'
21+
- php: '7.0'
22+
symfony: '6'
2123
- php: '7.1'
2224
symfony: '5'
25+
- php: '7.1'
26+
symfony: '6'
27+
- php: '7.2'
28+
symfony: '6'
29+
- php: '7.3'
30+
symfony: '6'
31+
- php: '7.4'
32+
symfony: '6'
33+
- php: '8.1'
34+
symfony: '3'
2335

2436
steps:
2537
- name: Checkout Code
@@ -35,6 +47,10 @@ jobs:
3547
- name: Setup Problem Matchers
3648
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
3749

50+
- name: Mimic PHP 8.0
51+
run: composer config platform.php 8.0.999
52+
if: matrix.php > 8
53+
3854
- name: Select Symfony 3
3955
uses: nick-invision/retry@v1
4056
with:
@@ -56,9 +72,17 @@ jobs:
5672
with:
5773
timeout_minutes: 5
5874
max_attempts: 5
59-
command: composer require "symfony/process:^5.2" --no-update --no-interaction
75+
command: composer require "symfony/process:^5.3" --no-update --no-interaction
6076
if: "matrix.symfony == '5'"
6177

78+
- name: Select Symfony 6
79+
uses: nick-invision/retry@v1
80+
with:
81+
timeout_minutes: 5
82+
max_attempts: 5
83+
command: composer require "symfony/process:^6.0" --no-update --no-interaction
84+
if: "matrix.symfony == '6'"
85+
6286
- name: Install PHP Dependencies
6387
uses: nick-invision/retry@v1
6488
with:

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@
1010
},
1111
{
1212
"name": "Graham Campbell",
13-
"email": "[email protected]"
13+
"email": "[email protected]"
1414
}
1515
],
1616
"require": {
1717
"php": "^7.0.8 || ^8.0",
18-
"classpreloader/classpreloader": "^4.1",
19-
"symfony/console": "^3.4 || ^4.0 || ^5.0",
18+
"classpreloader/classpreloader": "^4.2",
19+
"symfony/console": "^3.4 || ^4.4 || ^5.0 || ^6.0",
2020
"symfony/polyfill-ctype": "^1.9"
2121
},
2222
"require-dev": {
2323
"bamarni/composer-bin-plugin": "^1.4.1",
24-
"phpunit/phpunit": "^6.5.14 || ^7.5.20 || ^8.5.13",
24+
"phpunit/phpunit": "^6.5.14 || ^7.5.20 || ^8.5.19",
2525
"graham-campbell/analyzer": "^2.4.3 || ^3.0.4"
2626
},
2727
"autoload": {

vendor-bin/phpstan/composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"require": {
33
"php": "^7.2.5 || ^8.0",
4-
"phpstan/phpstan": "0.12.64",
4+
"phpstan/phpstan": "0.12.96",
55
"phpstan/extension-installer": "1.1.0",
66
"phpstan/phpstan-php-parser": "0.12.3",
7-
"phpstan/phpstan-strict-rules": "0.12.7",
8-
"phpstan/phpstan-symfony": "0.12.12"
7+
"phpstan/phpstan-strict-rules": "0.12.11",
8+
"phpstan/phpstan-symfony": "0.12.42"
99
}
1010
}

0 commit comments

Comments
 (0)