Skip to content

Commit b235cea

Browse files
committed
Decimal & Float: separate the fix to separate PR
1 parent 071651c commit b235cea

File tree

2 files changed

+2
-15
lines changed

2 files changed

+2
-15
lines changed

Diff for: src/Type/Doctrine/Descriptors/DecimalType.php

+1-8
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,7 @@ public function getWritableToDatabaseType(): Type
4141

4242
public function getDatabaseInternalType(): Type
4343
{
44-
return TypeCombinator::union(
45-
new FloatType(),
46-
new IntegerType(),
47-
new IntersectionType([
48-
new StringType(),
49-
new AccessoryNumericStringType(),
50-
])
51-
);
44+
return TypeCombinator::union(new FloatType(), new IntegerType());
5245
}
5346

5447
public function getDatabaseInternalTypeForDriver(Connection $connection): Type

Diff for: src/Type/Doctrine/Descriptors/FloatType.php

+1-7
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,7 @@ public function getWritableToDatabaseType(): Type
4040

4141
public function getDatabaseInternalType(): Type
4242
{
43-
return TypeCombinator::union(
44-
new \PHPStan\Type\FloatType(),
45-
new IntersectionType([
46-
new StringType(),
47-
new AccessoryNumericStringType(),
48-
])
49-
);
43+
return TypeCombinator::union(new \PHPStan\Type\FloatType(), new IntegerType());
5044
}
5145

5246
public function getDatabaseInternalTypeForDriver(Connection $connection): Type

0 commit comments

Comments
 (0)