Skip to content

Commit 92f977d

Browse files
authored
Merge pull request #114 from kenjis/move-rector-to-require
chore: move rector from `require-dev` to `require`
2 parents 93806fb + 4b4e0d6 commit 92f977d

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ predefined rulesets. Rector can be highly opinionated based on its configuration
143143
so be sure to read the documentation and figure out the best fit for you. This workflow performs
144144
a "dry run" to check for any changes that Rector would have made and fail if there are matches.
145145

146-
> Note: Rector updates rules all the time, so you may want to lock your repo to
146+
> **Note**
147+
> Rector updates rules all the time, so you may want to lock your repo to
147148
> the latest known working version of Rector to prevent unexpected failures.
148149
> Using pinned version in `composer.json` and update it with dependabot is the
149150
> best practice.

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@
3434
"phpstan/phpstan-phpunit": "^1.0",
3535
"phpunit/phpunit": "^9.3",
3636
"roave/security-advisories": "dev-latest",
37-
"vimeo/psalm": "^5.0"
37+
"vimeo/psalm": "^5.0",
38+
"rector/rector": "^0.18.3"
3839
},
3940
"require-dev": {
4041
"codeigniter4/framework": "^4.1",
41-
"icanhazstring/composer-unused": "^0.8.2",
42-
"rector/rector": "0.18.3"
42+
"icanhazstring/composer-unused": "^0.8.2"
4343
},
4444
"minimum-stability": "dev",
4545
"prefer-stable": true,

0 commit comments

Comments
 (0)