Skip to content

Commit 77f77f6

Browse files
Merge pull request #31 from cleverage/30
#30 - Update quality stack
2 parents 6149f80 + a81b310 commit 77f77f6

3 files changed

Lines changed: 14 additions & 6 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
Latest
2+
------
3+
4+
### Changes
5+
* [#30](https://github.com/cleverage/flysystem-process-bundle/issues/30) Update quality stack: use Rector `withComposerBased()` sets (removed `SYMFONY_64` / `PHPUNIT_100` sets), declare used Symfony packages and PHPUnit range in composer.json, apply quality tools fixes
6+
17
v3.0
28
------
39

‎composer.json‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,19 @@
5151
"require": {
5252
"php": ">=8.2",
5353
"cleverage/process-bundle": "^5.0",
54-
"league/flysystem-bundle": "^3.0"
54+
"league/flysystem-bundle": "^3.0",
55+
"symfony/config": "^6.4|^7.4|^8",
56+
"symfony/dependency-injection": "^6.4|^7.4|^8",
57+
"symfony/finder": "^6.4|^7.4|^8",
58+
"symfony/http-kernel": "^6.4|^7.4|^8",
59+
"symfony/options-resolver": "^6.4|^7.4|^8"
5560
},
5661
"require-dev": {
5762
"friendsofphp/php-cs-fixer": "*",
5863
"phpstan/extension-installer": "*",
5964
"phpstan/phpstan": "*",
6065
"phpstan/phpstan-symfony": "*",
61-
"phpunit/phpunit": "*",
66+
"phpunit/phpunit": "^10.5|^11|^12|^13",
6267
"rector/rector": "*",
6368
"roave/security-advisories": "dev-latest",
6469
"symfony/test-pack": "^1.1"

‎rector.php‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
declare(strict_types=1);
44

55
use Rector\Config\RectorConfig;
6-
use Rector\PHPUnit\Set\PHPUnitSetList;
76
use Rector\Set\ValueObject\LevelSetList;
87
use Rector\Symfony\Set\SymfonySetList;
98
use Rector\ValueObject\PhpVersion;
@@ -16,13 +15,11 @@
1615
])
1716
->withPhpSets(php81: true)
1817
// here we can define, what prepared sets of rules will be applied
18+
->withComposerBased(phpunit: true, symfony: true)
1919
->withPreparedSets(deadCode: true, codeQuality: true, symfonyCodeQuality: true)
2020
->withAttributesSets(symfony: true)
2121
->withSets([
2222
LevelSetList::UP_TO_PHP_82,
23-
PHPUnitSetList::PHPUNIT_100,
24-
SymfonySetList::SYMFONY_64,
25-
SymfonySetList::SYMFONY_CODE_QUALITY,
2623
SymfonySetList::SYMFONY_CONSTRUCTOR_INJECTION,
2724
])
2825
;

0 commit comments

Comments
 (0)