diff --git a/composer.json b/composer.json index 4eed9ef..c8a7d75 100644 --- a/composer.json +++ b/composer.json @@ -10,20 +10,19 @@ ], "require": { "php": "^8.2", - "darkwebdesign/symfony-addon-pack": "7.3.*", + "darkwebdesign/symfony-addon-pack": "7.3.*-dev", "doctrine/doctrine-bundle": "*", - "doctrine/orm": "*", "symfony/config": "7.3.*", "symfony/dependency-injection": "7.3.*", "symfony/http-kernel": "7.3.*" }, "require-dev": { - "friendsofphp/php-cs-fixer": "^3.58", + "friendsofphp/php-cs-fixer": "^3.93", "maglnet/composer-require-checker": "^4.17", - "phpstan/extension-installer": "^1.3", - "phpstan/phpstan": "^1.11", - "phpstan/phpstan-symfony": "^1.4", - "rector/rector": "^1.1" + "phpstan/extension-installer": "^1.4", + "phpstan/phpstan": "^2.1", + "phpstan/phpstan-symfony": "^2.0", + "rector/rector": "^2.3" }, "autoload": { "psr-4": { diff --git a/rector.php b/rector.php index 06bd024..bc4f0d8 100644 --- a/rector.php +++ b/rector.php @@ -3,15 +3,16 @@ declare(strict_types=1); use Rector\Config\RectorConfig; -use Rector\Set\ValueObject\LevelSetList; return RectorConfig::configure() ->withPaths([ __DIR__ . '/src', ]) - ->withSets([ - LevelSetList::UP_TO_PHP_82, - ]) - ->withImportNames( - importShortClasses: false, - ); + ->withPhpSets() + ->withAttributesSets() + ->withPreparedSets(symfonyCodeQuality: true, symfonyConfigs: true) + ->withComposerBased(symfony: true) + ->withImportNames(importShortClasses: false, removeUnusedImports: true) + ->withTypeCoverageLevel(0) + ->withDeadCodeLevel(0) + ->withCodeQualityLevel(0);