From 7179f81163dff95aa1eb509e5ab2026c5015b91b Mon Sep 17 00:00:00 2001 From: pamparam Date: Wed, 17 Jan 2024 20:16:09 +0300 Subject: [PATCH] rector, changelog, composer --- CHANGELOG.md | 1 + composer.json | 8 ++++++-- rector.php | 3 ++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3dfab6e92..25de0779a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## 2.0.0 under development +- New #648: Raise the minimum version of PHP to 8.1 (@pamparam83) - New #633: Add PHP attribute that sets property label for usage in error messages (@dood-) - New #597, #608: Add debug collector for `yiisoft/yii-debug` (@xepozz, @vjik) - New #610: Add `$escape` parameter to methods `Result::getAttributeErrorMessagesIndexedByPath()` and diff --git a/composer.json b/composer.json index 62d7210ef..6d0477b95 100644 --- a/composer.json +++ b/composer.json @@ -44,7 +44,7 @@ "rector/rector": "^0.19.0", "roave/infection-static-analysis-plugin": "^1.25", "spatie/phpunit-watcher": "^1.23", - "vimeo/psalm": "^4.30|^5.0", + "vimeo/psalm": "^5.0", "yiisoft/di": "^1.2", "yiisoft/test-support": "^3.0", "yiisoft/translator-message-php": "^1.1", @@ -86,6 +86,10 @@ }, "scripts": { "test": "phpunit --testdox --no-interaction", - "test-watch": "phpunit-watcher watch" + "test-watch": "phpunit-watcher watch", + "rector": "vendor/bin/rector process", + "infection": "vendor/bin/infection", + "dry-run": "vendor/bin/rector process --dry-run", + "psalm": "vendor/bin/psalm --config=psalm.xml" } } diff --git a/rector.php b/rector.php index f55daaed4..a7131ac5d 100644 --- a/rector.php +++ b/rector.php @@ -6,7 +6,7 @@ use Rector\Config\RectorConfig; use Rector\Php74\Rector\Closure\ClosureToArrowFunctionRector; use Rector\Set\ValueObject\LevelSetList; - +use Rector\Php81\Rector\Property\ReadOnlyPropertyRector; return static function (RectorConfig $rectorConfig): void { $rectorConfig->paths([ __DIR__ . '/src', @@ -23,5 +23,6 @@ $rectorConfig->skip([ ClosureToArrowFunctionRector::class, + ReadOnlyPropertyRector::class, ]); };