mirror of
https://github.com/rectorphp/rector.git
synced 2025-03-14 20:39:43 +01:00
add ParentTypehintedArgumentRector to README
This commit is contained in:
parent
adfc6cc200
commit
ab9403eb58
14
README.md
14
README.md
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user