File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 20
20
"minimum-stability" : " stable" ,
21
21
"require" : {
22
22
"php" : " ^7.1 | ^8.0" ,
23
- "doctrine/dbal" : " ^2.1 " ,
23
+ "doctrine/dbal" : " ^2.13 " ,
24
24
"neutronstars/enum" : " ^1.4"
25
25
},
26
26
"require-dev" : {
Original file line number Diff line number Diff line change 11
11
12
12
abstract class EnumType extends Type
13
13
{
14
- public function getSQLDeclaration (array $ column , AbstractPlatform $ platform ): string
14
+ /**
15
+ * @param array $column
16
+ * @param AbstractPlatform $platform
17
+ * @return string
18
+ */
19
+ public function getSQLDeclaration (array $ column , $ platform ): string
15
20
{
16
21
return Types::STRING ;
17
22
}
18
23
19
- public function convertToDatabaseValue ($ value , AbstractPlatform $ platform ): ?string
24
+ /**
25
+ * @param mixed $value
26
+ * @param AbstractPlatform $platform
27
+ * @return string|null
28
+ */
29
+ public function convertToDatabaseValue ($ value , $ platform ): ?string
20
30
{
21
31
return ($ value instanceof Enum) ? (string ) $ value : null ;
22
32
}
You can’t perform that action at this time.
0 commit comments