Skip to content

Commit

Permalink
Uprading PHPSTAN and Rector to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
escopecz committed Dec 23, 2024
1 parent a264399 commit e04e299
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 74 deletions.
16 changes: 8 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@
"liip/functional-test-bundle": "^4.3",
"liip/test-fixtures-bundle": "^2.6",
"mautic/transifex": "^5.0",
"phpstan/extension-installer": "^1.3",
"phpstan/phpstan": "^1.10.47",
"phpstan/phpstan-deprecation-rules": "^1.1",
"phpstan/phpstan-doctrine": "^1.3.40",
"phpstan/phpstan-phpunit": "^1.3",
"phpstan/phpstan-symfony": "^1.3",
"phpstan/extension-installer": "^1.4",
"phpstan/phpstan": "^2.0",
"phpstan/phpstan-deprecation-rules": "^2.0",
"phpstan/phpstan-doctrine": "^2.0",
"phpstan/phpstan-phpunit": "^2.0",
"phpstan/phpstan-symfony": "^2.0",
"phpunit/phpunit": "^9.5",
"rector/rector": "1.2.10",
"rector/rector": "2.0",
"symfony/browser-kit": "~6.4.0",
"symfony/dom-crawler": "~6.4.0",
"symfony/maker-bundle": "^1.38",
Expand Down Expand Up @@ -148,7 +148,7 @@
],
"test": "bin/phpunit -d memory_limit=2G --bootstrap vendor/autoload.php --configuration app/phpunit.xml.dist",
"e2e-test": "bin/codecept run acceptance",
"phpstan": "[ ! -f var/cache/test/AppKernelTestDebugContainer.xml ] && (echo 'Building test cache ...'; APP_ENV=test APP_DEBUG=1 bin/console > /dev/null 2>&1); php -d memory_limit=4G bin/phpstan analyse --ansi",
"phpstan": "[ ! -f var/cache/test/AppKernelTestDebugContainer.xml ] && (echo 'Building test cache ...'; APP_ENV=test APP_DEBUG=1 bin/console > /dev/null 2>&1); php -d memory_limit=5G bin/phpstan analyse --ansi",
"cs": "bin/php-cs-fixer fix --config=.php-cs-fixer.php -v --dry-run --diff",
"fixcs": "bin/php-cs-fixer fix -v",
"rector": "bin/rector process --ansi",
Expand Down
127 changes: 62 additions & 65 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@
],

// handle later with full PHP 8.0 upgrade
Rector\Php80\Rector\FunctionLike\MixedTypeRector::class,
Rector\CodeQuality\Rector\ClassMethod\OptionalParametersAfterRequiredRector::class,

// handle later, case by case as lot of chnaged code
Expand Down

0 comments on commit e04e299

Please sign in to comment.