Skip to content

Commit 41e4a24

Browse files
committed
Update documentation to add missing rename method
1 parent e594e59 commit 41e4a24

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,28 @@ class HelloWorld {
100100
}
101101
```
102102

103+
### Rename method
104+
105+
``` php
106+
<?php
107+
class HelloWorld {
108+
public function sayHello() {
109+
echo $this->sayHello();
110+
} ↑
111+
}
112+
```
113+
114+
`<Leader>rm` in normal mode, specify the new method name
115+
116+
``` php
117+
<?php
118+
class HelloWorld {
119+
public function newMethodName() {
120+
echo $this->newMethodName();
121+
} ↑
122+
}
123+
```
124+
103125
### Extract Use Statement
104126

105127
``` php

0 commit comments

Comments
 (0)