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 4
4
5
5
use Doctrine \DBAL \Connection ;
6
6
use PHPStan \Doctrine \Driver \DriverDetector ;
7
+ use PHPStan \Type \Accessory \AccessoryLowercaseStringType ;
7
8
use PHPStan \Type \Accessory \AccessoryNumericStringType ;
9
+ use PHPStan \Type \Accessory \AccessoryUppercaseStringType ;
8
10
use PHPStan \Type \FloatType ;
9
11
use PHPStan \Type \IntegerType ;
10
12
use PHPStan \Type \IntersectionType ;
@@ -31,7 +33,12 @@ public function getType(): string
31
33
32
34
public function getWritableToPropertyType (): Type
33
35
{
34
- return (new FloatType ())->toString ();
36
+ return new IntersectionType ([
37
+ new StringType (),
38
+ new AccessoryNumericStringType (),
39
+ new AccessoryLowercaseStringType (),
40
+ new AccessoryUppercaseStringType (),
41
+ ]);
35
42
}
36
43
37
44
public function getWritableToDatabaseType (): Type
You can’t perform that action at this time.
0 commit comments