Skip to content

Commit 5585b5a

Browse files
author
Xavier Marchegay
committed
Fixes #10
* upgrade test.yml * upgrade minimum php version in composer.json * add parallel run in phpcsfixer * remove @PHP71Migration in phpcsfixer * upgrade php version in rector
1 parent 0a97f13 commit 5585b5a

File tree

4 files changed

+25
-32
lines changed

4 files changed

+25
-32
lines changed

.github/workflows/test.yml

Lines changed: 17 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -23,50 +23,42 @@ jobs:
2323
- '8.2'
2424
- '8.3'
2525
- '8.4'
26+
- '8.5'
2627
dependencies: [highest]
2728
allowed-to-fail: [false]
2829
symfony-require: ['']
2930
variant: [normal]
3031
include:
31-
- php-version: '8.1'
32-
dependencies: highest
33-
allowed-to-fail: false
34-
symfony-require: 6.4.*
35-
variant: symfony/symfony:"6.4.*"
3632
- php-version: '8.2'
37-
dependencies: highest
38-
allowed-to-fail: false
3933
symfony-require: 6.4.*
4034
variant: symfony/symfony:"6.4.*"
4135
- php-version: '8.2'
42-
dependencies: highest
43-
allowed-to-fail: false
44-
symfony-require: 7.3.*
45-
variant: symfony/symfony:"7.3.*"
36+
symfony-require: 7.4.*
37+
variant: symfony/symfony:"7.4.*"
4638
- php-version: '8.3'
47-
dependencies: highest
48-
allowed-to-fail: false
4939
symfony-require: 6.4.*
5040
variant: symfony/symfony:"6.4.*"
5141
- php-version: '8.3'
52-
dependencies: highest
53-
allowed-to-fail: false
54-
symfony-require: 7.3.*
55-
variant: symfony/symfony:"7.3.*"
42+
symfony-require: 7.4.*
43+
variant: symfony/symfony:"7.4.*"
5644
- php-version: '8.4'
57-
dependencies: highest
58-
allowed-to-fail: false
5945
symfony-require: 6.4.*
6046
variant: symfony/symfony:"6.4.*"
6147
- php-version: '8.4'
62-
dependencies: highest
63-
allowed-to-fail: false
64-
symfony-require: 7.3.*
65-
variant: symfony/symfony:"7.3.*"
66-
48+
symfony-require: 7.4.*
49+
variant: symfony/symfony:"7.4.*"
50+
- php-version: '8.4'
51+
symfony-require: 8.0.*
52+
variant: symfony/symfony:"8.0.*"
53+
- php-version: '8.5'
54+
symfony-require: 7.4.*
55+
variant: symfony/symfony:"7.4.*"
56+
- php-version: '8.5'
57+
symfony-require: 8.0.*
58+
variant: symfony/symfony:"8.0.*"
6759
steps:
6860
- name: Checkout
69-
uses: actions/checkout@v4
61+
uses: actions/checkout@v6
7062
- name: Install PHP with extensions
7163
uses: shivammathur/setup-php@v2
7264
with:

.php-cs-fixer.dist.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
EOF;
2424

2525
return (new PhpCsFixer\Config())
26+
->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect())
2627
->setRules([
27-
'@PHP71Migration' => true,
2828
'@PHP82Migration' => true,
2929
'@PHPUnit75Migration:risky' => true,
3030
'@Symfony' => true,

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
}
3232
},
3333
"require": {
34-
"php": ">=8.1",
34+
"php": ">=8.2",
3535
"cleverage/process-bundle": "^4.0",
3636
"symfony/cache": "^6.4|^7.4|^8.0"
3737
},
@@ -40,7 +40,7 @@
4040
"phpstan/extension-installer": "*",
4141
"phpstan/phpstan": "*",
4242
"phpstan/phpstan-symfony": "*",
43-
"phpunit/phpunit": "<10.0",
43+
"phpunit/phpunit": "*",
4444
"rector/rector": "*",
4545
"roave/security-advisories": "dev-latest",
4646
"symfony/test-pack": "^1.1"

rector.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,18 @@
88
use Rector\ValueObject\PhpVersion;
99

1010
return RectorConfig::configure()
11-
->withPhpVersion(PhpVersion::PHP_84)
11+
->withPhpVersion(PhpVersion::PHP_85)
1212
->withPaths([
1313
__DIR__.'/src',
1414
__DIR__.'/tests',
1515
])
16-
->withPhpSets(php81: true)
17-
// here we can define, what prepared sets of rules will be applied
16+
->withPhpSets(php82: true)
17+
// here we can define what prepared sets of rules will be applied
1818
->withPreparedSets(deadCode: true, codeQuality: true, symfonyCodeQuality: true)
1919
->withAttributesSets(symfony: true)
20+
->withComposerBased(symfony: true)
2021
->withSets([
21-
LevelSetList::UP_TO_PHP_81,
22+
LevelSetList::UP_TO_PHP_82,
2223
SymfonySetList::SYMFONY_64,
2324
SymfonySetList::SYMFONY_CODE_QUALITY,
2425
SymfonySetList::SYMFONY_CONSTRUCTOR_INJECTION,

0 commit comments

Comments
 (0)