File tree Expand file tree Collapse file tree 2 files changed +2
-15
lines changed
src/Type/Doctrine/Descriptors Expand file tree Collapse file tree 2 files changed +2
-15
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments