File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed
src/Type/Doctrine/Descriptors Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -278,6 +278,9 @@ services:
278278 -
279279 class : PHPStan\Type\Doctrine\Descriptors\ArrayType
280280 tags : [phpstan.doctrine.typeDescriptor ]
281+ -
282+ class : PHPStan\Type\Doctrine\Descriptors\AsciiStringType
283+ tags : [phpstan.doctrine.typeDescriptor ]
281284 -
282285 class : PHPStan\Type\Doctrine\Descriptors\BigIntType
283286 tags : [phpstan.doctrine.typeDescriptor ]
Original file line number Diff line number Diff line change 1+ <?php declare (strict_types = 1 );
2+
3+ namespace PHPStan \Type \Doctrine \Descriptors ;
4+
5+ use PHPStan \Type \StringType ;
6+ use PHPStan \Type \Type ;
7+
8+ class AsciiStringType implements DoctrineTypeDescriptor
9+ {
10+
11+ public function getType (): string
12+ {
13+ return \Doctrine \DBAL \Types \AsciiStringType::class;
14+ }
15+
16+ public function getWritableToPropertyType (): Type
17+ {
18+ return new StringType ();
19+ }
20+
21+ public function getWritableToDatabaseType (): Type
22+ {
23+ return new StringType ();
24+ }
25+
26+ public function getDatabaseInternalType (): Type
27+ {
28+ return new StringType ();
29+ }
30+
31+ }
You can’t perform that action at this time.
0 commit comments