StaticTypeMapper - missing boolean type

This commit is contained in:
Martin Sojka 2019-12-09 17:36:20 +01:00
parent 08eb92d154
commit 142042a7a7

View File

@ -116,6 +116,10 @@ final class StaticTypeMapper
return new IdentifierTypeNode('string');
}
if ($phpStanType instanceof BooleanType) {
return new IdentifierTypeNode('bool');
}
if ($phpStanType instanceof FloatType) {
return new IdentifierTypeNode('float');
}