Skip to content

Commit

Permalink
chore(composer): Update composer-git-hooks version and rector package
Browse files Browse the repository at this point in the history
- Update composer-git-hooks version to ^2.8
- Update rector package version to ^1.0
- Update composer-updater --except-packages=dcat/laravel-admin
  • Loading branch information
guanguans committed Mar 21, 2024
1 parent e089697 commit c8da446
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
9 changes: 5 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"illuminate/support": "^7.0 || ^8.0 || ^9.0 || ^10.0"
},
"require-dev": {
"brainmaestro/composer-git-hooks": "^2.8 || ^3.0",
"brainmaestro/composer-git-hooks": "^2.8",
"ergebnis/composer-normalize": "^2.20",
"friendsofphp/php-cs-fixer": "^3.4",
"guanguans/ai-commit": "dev-main",
Expand All @@ -54,7 +54,7 @@
"phpstan/extension-installer": "^1.3",
"phpstan/phpstan": "^1.10",
"phpstan/phpstan-deprecation-rules": "^1.1",
"rector/rector": "^0.18 || ^0.19 || ^1.0",
"rector/rector": "^1.0",
"vimeo/psalm": "^4.30 || ^5.0"
},
"minimum-stability": "dev",
Expand Down Expand Up @@ -135,7 +135,8 @@
"@lint",
"@style-lint",
"@test",
"@psalm"
"@psalm",
"@rector-dry-run"
],
"composer-bin-all-update": "@composer bin all update --ansi -v",
"composer-check-platform-reqs": "@composer check-platform-reqs --lock --ansi -v",
Expand All @@ -145,7 +146,7 @@
"composer-require-checker": "@php ./vendor/bin/composer-require-checker check --config-file=composer-require-checker.json composer.json --ansi -v",
"composer-unused": "@php ./vendor/bin/composer-unused --ansi -v",
"composer-unused-checker": "@php ./vendor/bin/composer-unused --ansi -v",
"composer-updater": "@php ./composer-updater --highest-php-binary=/opt/homebrew/opt/[email protected]/bin/php --except-packages=guanguans/notify --except-packages=laravel/lumen-framework --except-packages=orchestra/testbench --except-packages=pestphp/pest-plugin-laravel --ansi",
"composer-updater": "@php ./composer-updater --highest-php-binary=/opt/homebrew/opt/[email protected]/bin/php --except-packages=dcat/laravel-admin --except-packages=laravel/lumen-framework --except-packages=orchestra/testbench --except-packages=pestphp/pest-plugin-laravel --ansi",
"composer-updater-dry-run": "@composer-updater --dry-run",
"composer-validate": "@composer validate --check-lock --strict --ansi -v",
"doctum": "@php ./vendor/bin/doctum.php update doctum.php --ansi -v",
Expand Down
6 changes: 3 additions & 3 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
use Rector\CodingStyle\Rector\Encapsed\EncapsedStringsToSprintfRector;
use Rector\CodingStyle\Rector\Encapsed\WrapEncapsedVariableInCurlyBracesRector;
use Rector\Config\RectorConfig;
use Rector\Core\Configuration\Option;
use Rector\Core\ValueObject\PhpVersion;
use Rector\Configuration\Option;
use Rector\DeadCode\Rector\Assign\RemoveUnusedVariableAssignRector;
use Rector\DeadCode\Rector\ClassMethod\RemoveEmptyClassMethodRector;
use Rector\EarlyReturn\Rector\If_\ChangeAndIfToEarlyReturnRector;
Expand All @@ -41,6 +40,7 @@
use Rector\Set\ValueObject\LevelSetList;
use Rector\Set\ValueObject\SetList;
use Rector\Strict\Rector\Empty_\DisallowedEmptyRuleFixerRector;
use Rector\ValueObject\PhpVersion;

return static function (RectorConfig $rectorConfig): void {
define('MHASH_XXH3', 1);
Expand Down Expand Up @@ -161,7 +161,7 @@
SetList::EARLY_RETURN,
SetList::INSTANCEOF,

PHPUnitLevelSetList::UP_TO_PHPUNIT_90,
// PHPUnitLevelSetList::UP_TO_PHPUNIT_90,
PHPUnitSetList::PHPUNIT_90,
// PHPUnitSetList::PHPUNIT80_DMS,
PHPUnitSetList::PHPUNIT_CODE_QUALITY,
Expand Down

0 comments on commit c8da446

Please sign in to comment.