From 4cdef892043d67c66b2e1fd18d4d78194bdf0dea Mon Sep 17 00:00:00 2001 From: Nicolas Joubert Date: Thu, 24 Sep 2026 14:32:23 +0200 Subject: [PATCH] #48 - Update quality stack - rector.php: enable withComposerBased(phpunit: true) alongside symfony - composer.json: declare Symfony packages used by src/ and set a PHPUnit range - Run the full quality stack (rector, php-cs-fixer, phpstan): no change needed Co-Authored-By: Claude Opus 5.5 (1M context) --- composer.json | 10 ++++++++-- rector.php | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index de7547c..2a08056 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,13 @@ "cleverage/soap-process-bundle": "^3.0", "cleverage/ui-process-bundle": "^3.0", "league/flysystem-sftp-v3": "^3.0", - "symfony/flex": "^v2.3" + "symfony/cache": "^6.4 || ^7.4 || ^8", + "symfony/cache-contracts": "^3", + "symfony/flex": "^v2.3", + "symfony/framework-bundle": "^6.4 || ^7.4 || ^8", + "symfony/http-kernel": "^6.4 || ^7.4 || ^8", + "symfony/password-hasher": "^6.4 || ^7.4 || ^8", + "symfony/scheduler": "^6.4 || ^7.4 || ^8" }, "require-dev": { "doctrine/doctrine-fixtures-bundle": "^3 || ^4", @@ -26,7 +32,7 @@ "phpstan/phpstan": "*", "phpstan/phpstan-doctrine": "*", "phpstan/phpstan-symfony": "*", - "phpunit/phpunit": "*", + "phpunit/phpunit": "^10.5 || ^11 || ^12 || ^13", "rector/rector": "*", "roave/security-advisories": "dev-latest", "symfony/browser-kit": "^6.4 || ^7.4 || ^8", diff --git a/rector.php b/rector.php index 23aa5f8..0c4dde0 100644 --- a/rector.php +++ b/rector.php @@ -14,7 +14,7 @@ ]) ->withPhpSets(php82: true) // here we can define, what prepared sets of rules will be applied - ->withComposerBased(symfony: true) + ->withComposerBased(phpunit: true, symfony: true) ->withPreparedSets(deadCode: true, codeQuality: true, doctrineCodeQuality: true, symfonyCodeQuality: true) ->withAttributesSets(symfony: true, doctrine: true) ->withSets([