Skip to content

Commit

Permalink
Also allow T_RETURN token.
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Mar 29, 2012
1 parent ad25e31 commit 75ab782
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -65,6 +65,7 @@ public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
T_EQUAL,
T_DOUBLE_ARROW,
T_THROW,
T_RETURN,
);

if (in_array($tokens[$prev]['code'], $allowedTokens) === false) {
Expand Down

0 comments on commit 75ab782

Please sign in to comment.