File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
src/Type/Doctrine/Descriptors Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 44
55use Doctrine \DBAL \Connection ;
66use PHPStan \Doctrine \Driver \DriverDetector ;
7+ use PHPStan \Type \Accessory \AccessoryLowercaseStringType ;
78use PHPStan \Type \Accessory \AccessoryNumericStringType ;
9+ use PHPStan \Type \Accessory \AccessoryUppercaseStringType ;
810use PHPStan \Type \FloatType ;
911use PHPStan \Type \IntegerType ;
1012use PHPStan \Type \IntersectionType ;
@@ -31,7 +33,12 @@ public function getType(): string
3133
3234 public function getWritableToPropertyType (): Type
3335 {
34- return (new FloatType ())->toString ();
36+ return new IntersectionType ([
37+ new StringType (),
38+ new AccessoryNumericStringType (),
39+ new AccessoryLowercaseStringType (),
40+ new AccessoryUppercaseStringType (),
41+ ]);
3542 }
3643
3744 public function getWritableToDatabaseType (): Type
You can’t perform that action at this time.
0 commit comments