mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 13:28:18 +01:00
add PseudonamespaceToNamespaceRector to README
This commit is contained in:
parent
fba26692b8
commit
0b5126c4b9
10
README.md
10
README.md
@ -125,7 +125,7 @@ You can:
|
||||
'BetterReflection': 'Roave\BetterReflection'
|
||||
```
|
||||
|
||||
- or **change method name**
|
||||
- **change method name**
|
||||
|
||||
```yml
|
||||
# nette24.yml
|
||||
@ -137,6 +137,14 @@ You can:
|
||||
'add': 'addHtml'
|
||||
```
|
||||
|
||||
- or **replace underscore naming `_` with namespaces `\`**
|
||||
|
||||
```yml
|
||||
rectors:
|
||||
Rector\Roector\Dynamic\PseudoNamespaceToNamespaceRector:
|
||||
# old namespace prefix
|
||||
- 'PHPUnit_'
|
||||
```
|
||||
|
||||
|
||||
### READMEs for Subpackages
|
||||
|
@ -17,10 +17,7 @@ use Rector\Rector\AbstractRector;
|
||||
/**
|
||||
* Basically inversion of https://github.com/nikic/PHP-Parser/blob/master/doc/2_Usage_of_basic_components.markdown#example-converting-namespaced-code-to-pseudo-namespaces
|
||||
*
|
||||
*
|
||||
* Requested on SO: https://stackoverflow.com/questions/29014957/converting-pseudo-namespaced-classes-to-use-real-namespace
|
||||
*
|
||||
* @todo might handle current @see phpunit60.yml @see \Rector\Rector\Dynamic\NamespaceReplacerRector
|
||||
*/
|
||||
final class PseudoNamespaceToNamespaceRector extends AbstractRector
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user