mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-25 12:14:02 +01:00
StaticTypeMapper - missing boolean type
This commit is contained in:
parent
08eb92d154
commit
142042a7a7
@ -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');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user