Skip to content
Permalink
Browse files

Allow lower-cased constant names

  • Loading branch information...
muglug committed Jul 28, 2019
1 parent 2f40038 commit e58ade5803aacb4ff21eebc7475c75fc3fa4960e
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Psalm/Internal/Type/ParseTree.php
@@ -506,7 +506,7 @@ public static function createFromTokens(array $type_tokens)
$nexter_token = $i + 2 < $c ? $type_tokens[$i + 2] : null;
if (!$nexter_token
|| (!preg_match('/^[A-Z_][A-Z_0-9]*$/', $nexter_token[0])
|| (!preg_match('/^[A-Z_][a-zA-Z_0-9]*$/', $nexter_token[0])
&& strtolower($nexter_token[0]) !== 'class')
) {
throw new TypeParseTreeException(

0 comments on commit e58ade5

Please sign in to comment.
You can’t perform that action at this time.