Skip to content

Commit 9a8082a

Browse files
committed
Fixed the PHPDoc block for the getter to use @return
1 parent 5aed7e1 commit 9a8082a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

UltiSnips/php.snippets

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ snippet getter "PHP Class Getter" b
115115
/**
116116
* Getter for $1
117117
*
118-
* ${2:return string}
118+
* @return ${2:string}
119119
*/
120120
public function get${1/\w+\s*/\u$0/}()
121121
{
@@ -127,7 +127,7 @@ snippet setter "PHP Class Setter" b
127127
/**
128128
* Setter for $1
129129
*
130-
* @param ${2:string} $$1
130+
* @param ${2:string} $$1
131131
* @return ${3:`!p snip.rv=snip.basename`}
132132
*/
133133
public function set${1/\w+\s*/\u$0/}(${4:${2/(void|string|int|integer|double|float|object|boolear|null|mixed|number|resource)|(.*)/(?1::$2 )/}}$$1)
@@ -143,7 +143,7 @@ snippet gs "PHP Class Getter Setter" b
143143
/**
144144
* Getter for $1
145145
*
146-
* return ${2:string}
146+
* @return ${2:string}
147147
*/
148148
public function get${1/\w+\s*/\u$0/}()
149149
{
@@ -316,7 +316,7 @@ if m:
316316
*/
317317
interface $1
318318
{
319-
public function ${3:someFunction}();$4
319+
public function ${3:someFunction}();$4
320320
}
321321
endsnippet
322322

0 commit comments

Comments
 (0)