README: add link to Rector how it works

This commit is contained in:
TomasVotruba 2018-01-06 16:05:19 +01:00
parent 6b60c1548c
commit f7d7f0e1e6
2 changed files with 2 additions and 1 deletions

View File

@ -353,6 +353,7 @@ vendor/bin/ecs check --config vendor/rector/rector/ecs-after-rector.neon --fix
## More Detailed Documentation
- [How Rector Works?](/docs/HowItWorks.md)
- [How to Create Own Rector](/docs/HowToCreateOwnRector.md)
- [Service Name to Type Provider](/docs/ServiceNameToTypeProvider.md)

View File

@ -30,7 +30,7 @@ foreach ($fileInfos as $fileInfo) {
### 2.1 Prepare Phase
- File is parsed by [`nikic/php-parser`](https://github.com/nikic/PHP-Parser), 4.0-dex (this is important, because this version support writing modified tree back to file)
- File is parsed by [`nikic/php-parser`](https://github.com/nikic/PHP-Parser), 4.0-dev (this is important, because this version support writing modified tree back to file)
- Then nodes (array of objects by parser) are traversed by `StandaloneTraverseNodeTraverser` to prepare it's metadata, e.g. class name, method node the node is in, namespace name etc. added by `$node->setAttribute(Attribute::CLASS_NODE, 'value')`.
### 2.2 Rectify Phase