File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
src/Type/Doctrine/Descriptors Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change 4
4
5
5
use Doctrine \DBAL \Connection ;
6
6
use PHPStan \Doctrine \Driver \DriverDetector ;
7
- use PHPStan \Type \Accessory \AccessoryNumericStringType ;
8
7
use PHPStan \Type \FloatType ;
9
8
use PHPStan \Type \IntegerType ;
10
- use PHPStan \Type \IntersectionType ;
11
9
use PHPStan \Type \StringType ;
12
10
use PHPStan \Type \Type ;
13
11
use PHPStan \Type \TypeCombinator ;
@@ -58,10 +56,7 @@ public function getDatabaseInternalTypeForDriver(Connection $connection): Type
58
56
DriverDetector::PGSQL ,
59
57
DriverDetector::PDO_PGSQL ,
60
58
], true )) {
61
- return new IntersectionType ([
62
- new StringType (),
63
- new AccessoryNumericStringType (),
64
- ]);
59
+ return (new FloatType ())->toString ();
65
60
}
66
61
67
62
// not yet supported driver, return the old implementation guess
You can’t perform that action at this time.
0 commit comments