add ParentTypehintedArgumentRector to README

This commit is contained in:
TomasVotruba 2017-10-21 18:30:45 +02:00
parent adfc6cc200
commit ab9403eb58

View File

@ -158,6 +158,20 @@ You can:
'POST_BIND': 'POST_SUBMIT'
```
- **change parameters typehtint according to parent type**
```yml
# php-parser40.yml
rectors:
Rector\Rector\Dynamic\ParentTypehintedArgumentRector:
# class:
# method:
# parameter: typehting
'PhpParser\Parser':
'parse':
'code': 'string'
```
- or **replace underscore naming `_` with namespaces `\`**
```yml