Skip to content

Commit

Permalink
Merge branch 'feature/minor-code-simplification' of https://github.co…
Browse files Browse the repository at this point in the history
  • Loading branch information
gsherwood committed Apr 10, 2017
2 parents eb56b94 + ef87804 commit d1d8123
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions CodeSniffer/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -2669,9 +2669,7 @@ public function getDeclarationName($stackPtr)
return null;
}

if ($tokenCode === T_FUNCTION
&& $this->isAnonymousFunction($stackPtr) === true
) {
if ($tokenCode === T_CLOSURE) {
return null;
}

Expand Down

0 comments on commit d1d8123

Please sign in to comment.