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:
parent
f01b462d75
commit
3024ea1ef1
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user