Skip to content

Commit 90473e7

Browse files
authored
MysqlTypeMapper: add support for FLOAT types (#572)
1 parent 364de7e commit 90473e7

File tree

5 files changed

+535
-564
lines changed

5 files changed

+535
-564
lines changed

src/TypeMapping/MysqlTypeMapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public function mapToPHPStanType(string $mysqlType, array $mysqlFlags, int $leng
127127
$phpstanType = IntegerRangeType::fromInterval(0, 2155);
128128
}
129129
// floats are detected as numerics in mysqli
130-
if (\in_array(strtoupper($mysqlType), ['DOUBLE', 'REAL'], true)) {
130+
if (\in_array(strtoupper($mysqlType), ['DOUBLE', 'REAL', 'FLOAT'], true)) {
131131
$phpstanType = new FloatType();
132132
}
133133

0 commit comments

Comments
 (0)