From 9a8082aba696c879269edb4ec8710cc42f0eb8ff Mon Sep 17 00:00:00 2001 From: Mathew Attlee Date: Wed, 25 May 2016 08:57:06 +0100 Subject: [PATCH] Fixed the PHPDoc block for the getter to use @return --- UltiSnips/php.snippets | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/UltiSnips/php.snippets b/UltiSnips/php.snippets index ff3e6f3..465a6c4 100644 --- a/UltiSnips/php.snippets +++ b/UltiSnips/php.snippets @@ -115,7 +115,7 @@ snippet getter "PHP Class Getter" b /** * Getter for $1 * - * ${2:return string} + * @return ${2:string} */ public function get${1/\w+\s*/\u$0/}() { @@ -127,7 +127,7 @@ snippet setter "PHP Class Setter" b /** * Setter for $1 * - * @param ${2:string} $$1 + * @param ${2:string} $$1 * @return ${3:`!p snip.rv=snip.basename`} */ 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 /** * Getter for $1 * - * return ${2:string} + * @return ${2:string} */ public function get${1/\w+\s*/\u$0/}() { @@ -316,7 +316,7 @@ if m: */ interface $1 { - public function ${3:someFunction}();$4 + public function ${3:someFunction}();$4 } endsnippet