Skip to content

Commit

Permalink
Changelog for #1015
Browse files Browse the repository at this point in the history
  • Loading branch information
gsherwood committed May 24, 2016
1 parent f1c7dc6 commit d9a3dea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,10 @@ protected function processReturn(PHP_CodeSniffer_File $phpcsFile, $stackPtr, $co
}
}

// Ignores description, that might come after return type.
list($returnType,) = explode(' ', $content, 2);
// Support both a return type and a description. The return type
// is anything up to the first space.
$returnParts = explode(' ', $content, 2);
$returnType = $returnParts[0];

// If the return type is void, make sure there is
// no return statement in the function.
Expand Down
2 changes: 2 additions & 0 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ http://pear.php.net/dtd/package-2.0.xsd">
- Fixed bug #983 : Squiz.WhiteSpace.MemberVarSpacing.AfterComment fails to fix error when comment is not a docblock
- Fixed bug #1010 : Squiz NonExectuableCode sniff does not detect boolean OR
-- Thanks to Derek Henderson for the patch
- Fixed bug #1015 : The Squiz.Commenting.FunctionComment sniff doesn't allow description in @return tag
-- Thanks to Alexander Obuhovich for the patch
</notes>
<contents>
<dir name="/">
Expand Down

0 comments on commit d9a3dea

Please sign in to comment.