Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/HowItWorks.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ foreach ($fileInfos as $fileInfo) {

### 2.2 Rectify Phase

- When all nodes are ready, applicies iterates all active Rector
- Each nodes is compared to `$rector->getNodeTypes()` method to see, if this Rector should do some work on it, e.g. is this class name called `OldClassName`?
- When all nodes are ready, application iterates all active Rectors
- Each node is compared to `$rector->getNodeTypes()` method to see, if this Rector should do some work on it, e.g. is this class name called `OldClassName`?
- If it doesn't match, it goes to next node.
- If it matches, the `$rector->reconstruct($node)` method is called
- Active Rector changes all what he should and returns changed node
Expand Down