You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* The 0.13.0 and higher releases of drupal-rector will include Rector 0.13.8+. The upgrade path should be as simple as re-copying the configuration file. `cp vendor/palantirnet/drupal-rector/rector.php`
11
+
* The 0.18.0 and higher releases of drupal-rector will include Rector 0.18+. The upgrade path should be as simple as re-copying the configuration file. `cp vendor/palantirnet/drupal-rector/rector.php`.
16
12
17
-
* The 0.12.4 is a stable release pinned to Rector 0.12.21. Developers should be aware that Rector 0.12.22 introduces breaking changes to how we handle Drupal configuration.
13
+
* The 0.13.0 and higher releases of drupal-rector will include Rector 0.13.8+. The upgrade path should be as simple as re-copying the configuration file. `cp vendor/palantirnet/drupal-rector/rector.php`
18
14
19
15
*Note that GitHub does not let us have different default homepage and merge branches. If you checked out the project using packagist/composer, read the docs for your version.*
20
16
@@ -30,6 +26,11 @@ Development guides, individual deprecation overviews, and other resources can be
30
26
31
27
https://www.palantir.net/rector
32
28
29
+
List of all rules with examples:
30
+
31
+
[Rule overview in docs/rules_overview.md](docs%2Frules_overview.md)
32
+
33
+
33
34
## Scope and limitations
34
35
35
36
The development of this tool is prioritized by the perceived impact of the deprecations and updates. There are many deprecations that often involve several components and for each of these there are several ways to address the deprecation.
@@ -123,7 +124,7 @@ Rector itself has conflicts with older versions of PhpStan.
123
124
124
125
If you are getting errors like
125
126
126
-
`[ERROR] Class "DrupalRector\Rector\Deprecation\EntityManagerRector" was not found while loading`
127
+
`[ERROR] Class "DrupalRector\Drupal8\Rector\Deprecation\EntityManagerRector" was not found while loading`
127
128
128
129
You may need to rebuild your autoload file.
129
130
@@ -170,9 +171,7 @@ Our goal is to make contributing to this project easy for people. While we've ma
170
171
171
172
### Development environment
172
173
173
-
We recommend using our `drupal-rector-sandbox` development environment [https://github.com/palantirnet/drupal-rector-sandbox](https://github.com/palantirnet/drupal-rector-sandbox)
174
-
175
-
Alternatively, you can use your existing Drupal project and follow the instructions in [README](https://github.com/palantirnet/drupal-rector-sandbox/blob/master/README.md#developing-with-drupal-rector)
174
+
See the instructions in [README](https://github.com/palantirnet/drupal-rector-sandbox/blob/master/README.md#developing-with-drupal-rector)
176
175
177
176
### Adding a Rector rule
178
177
@@ -240,16 +239,10 @@ The index file is used in part to provide automated updates to https://dev.acqui
240
239
241
240
## Pinning dev dependencies
242
241
243
-
If there are conflicts with Rector, the package version can be conflicted with `conflict` on `rector/rector`.
244
-
245
-
For development, the `require-dev` is on `rector/rector-src` which is `dev-main` and that includes the `dev-main` of all
246
-
its packages.
247
-
248
-
To properly pin a development release of `rector-src`:
242
+
If there are conflicts with Rector, the package version can be conflicted with `conflict` on `rector/rector` and `phpstan/phpstan`.
249
243
250
-
* Set `rector/rector-src` to `dev-main#COMMIT` where `COMMIT` is the tag commit in `rector-src`
251
244
* View the tree for the commit on GitHub and it's `composer/installed.json` file (example https://github.com/rectorphp/rector/blob/0.12.18/vendor/composer/installed.json)
252
-
* Use the references to pin `require-dev` dependencies.
245
+
* Use the reference to pin the `phpstan/phpstan` dependency.
0 commit comments