1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 05:41:20 +01:00

Improve handling of class constants in types

This commit is contained in:
Matthew Brown 2018-12-22 12:12:35 -05:00
parent f01b462d75
commit 3024ea1ef1

View File

@ -435,6 +435,10 @@ abstract class Type
return new Atomic\TGenericParamClass($fq_classlike_name);
}
if ($const_name === 'class') {
return new Atomic\TLiteralClassString($fq_classlike_name);
}
return new Atomic\TScalarClassConstant($fq_classlike_name, $const_name);
}