diff --git a/src/QueryReflection/PdoQueryReflector.php b/src/QueryReflection/PdoQueryReflector.php index de5cb7e28..9e8c8a738 100644 --- a/src/QueryReflection/PdoQueryReflector.php +++ b/src/QueryReflection/PdoQueryReflector.php @@ -15,6 +15,7 @@ use PHPStan\Type\Type; use staabm\PHPStanDba\Error; use staabm\PHPStanDba\TypeMapping\MysqlTypeMapper; +use function strtoupper; /** * @phpstan-type ColumnMeta array{name: string, table: string, native_type: string, len: int, flags: list} @@ -262,13 +263,13 @@ private function isNumericCol(string $mysqlType): bool { return match (strtoupper($mysqlType)) { 'LONGLONG', - 'LONG', - 'SHORT', - 'TINY', - 'YEAR', - 'BIT', - 'INT24' => true, - default => false, + 'LONG', + 'SHORT', + 'TINY', + 'YEAR', + 'BIT', + 'INT24' => true, + default => false, }; } }