From 8376398f3dcd3674a7d3aa16982976d2cb14f7f4 Mon Sep 17 00:00:00 2001 From: kenjis Date: Mon, 11 Sep 2023 09:29:54 +0900 Subject: [PATCH 1/2] chore: move rector from require-dev to require --- composer.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 05c4e58..5b10c76 100644 --- a/composer.json +++ b/composer.json @@ -34,12 +34,12 @@ "phpstan/phpstan-phpunit": "^1.0", "phpunit/phpunit": "^9.3", "roave/security-advisories": "dev-latest", - "vimeo/psalm": "^5.0" + "vimeo/psalm": "^5.0", + "rector/rector": "^0.18.3" }, "require-dev": { "codeigniter4/framework": "^4.1", - "icanhazstring/composer-unused": "^0.8.2", - "rector/rector": "0.18.3" + "icanhazstring/composer-unused": "^0.8.2" }, "minimum-stability": "dev", "prefer-stable": true, From 4b4e0d6f6b84acc13b641ea17c014df562a3c84f Mon Sep 17 00:00:00 2001 From: kenjis Date: Thu, 14 Sep 2023 09:19:40 +0900 Subject: [PATCH 2/2] docs: fix Note format in GitHub markdown --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1313bb1..4d85d3f 100644 --- a/README.md +++ b/README.md @@ -143,7 +143,8 @@ predefined rulesets. Rector can be highly opinionated based on its configuration so be sure to read the documentation and figure out the best fit for you. This workflow performs a "dry run" to check for any changes that Rector would have made and fail if there are matches. -> Note: Rector updates rules all the time, so you may want to lock your repo to +> **Note** +> Rector updates rules all the time, so you may want to lock your repo to > the latest known working version of Rector to prevent unexpected failures. > Using pinned version in `composer.json` and update it with dependabot is the > best practice.