Skip to content

Commit f8e725d

Browse files
Try
1 parent befdd01 commit f8e725d

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/Type/Doctrine/Descriptors/DecimalType.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44

55
use Doctrine\DBAL\Connection;
66
use PHPStan\Doctrine\Driver\DriverDetector;
7-
use PHPStan\Type\Accessory\AccessoryNumericStringType;
87
use PHPStan\Type\FloatType;
98
use PHPStan\Type\IntegerType;
10-
use PHPStan\Type\IntersectionType;
119
use PHPStan\Type\StringType;
1210
use PHPStan\Type\Type;
1311
use PHPStan\Type\TypeCombinator;
@@ -58,10 +56,7 @@ public function getDatabaseInternalTypeForDriver(Connection $connection): Type
5856
DriverDetector::PGSQL,
5957
DriverDetector::PDO_PGSQL,
6058
], true)) {
61-
return new IntersectionType([
62-
new StringType(),
63-
new AccessoryNumericStringType(),
64-
]);
59+
return (new FloatType())->toString();
6560
}
6661

6762
// not yet supported driver, return the old implementation guess

0 commit comments

Comments
 (0)