mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-29 11:33:33 +01:00
README: add link to Rector how it works
This commit is contained in:
parent
6b60c1548c
commit
f7d7f0e1e6
@ -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)
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user