Skip to content

Commit

Permalink
Update src/Tokenizer/Analyzer/FunctionsAnalyzer.php
Browse files Browse the repository at this point in the history
  • Loading branch information
keradus committed Mar 1, 2021
1 parent 8f89538 commit fe56d6e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Tokenizer/Analyzer/FunctionsAnalyzer.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ public function isGlobalFunctionCall(Tokens $tokens, $index)
}

$possibleKind = [T_DOUBLE_COLON, T_FUNCTION, CT::T_NAMESPACE_OPERATOR, T_NEW, T_OBJECT_OPERATOR, CT::T_RETURN_REF, T_STRING];

// @TODO: drop condition when PHP 8.0+ is required
if (\defined('T_ATTRIBUTE')) {
$possibleKind[] = T_ATTRIBUTE;
}
Expand Down

0 comments on commit fe56d6e

Please sign in to comment.