Skip to content

Commit 437f7f1

Browse files
committed
Change rector practice
1 parent e0e52d6 commit 437f7f1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,10 @@ 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 the latest known working version of Rector to prevent unexpected failures
147-
> E.g. in **Template/.github/workflows/rector.yml** supply the specific minor patch: `composer global require --dev rector/rector:0.12.16`
146+
> Note: Rector updates rules all the time, so you may want to lock your repo to
147+
> the latest known working version of Rector to prevent unexpected failures.
148+
> Using pinned version in `composer.json` and update it with dependabot is the
149+
> best practice.
148150
149151
#### Unused
150152

src/Template/.github/workflows/rector.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,4 @@ jobs:
6161
fi
6262
6363
- name: Analyze for refactoring
64-
run: |
65-
composer global require --dev rector/rector:^0.15.1
66-
rector process --dry-run --no-progress-bar
64+
run: vendor/bin/rector process --dry-run --no-progress-bar

0 commit comments

Comments
 (0)