We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8adbdfd commit 3414b8eCopy full SHA for 3414b8e
src/DBAL/Type/EnumType.php
@@ -43,12 +43,12 @@ public function getName(): string
43
}
44
45
/**
46
- * @param int|string|\UnitEnum $value
+ * @param null|int|string|\UnitEnum $value
47
* @param AbstractPlatform $platform
48
*
49
- * @return int|string
+ * @return null|int|string
50
*/
51
- public function convertToDatabaseValue($value, AbstractPlatform $platform): int|string
+ public function convertToDatabaseValue($value, AbstractPlatform $platform): null|int|string
52
{
53
if ($value instanceof \BackedEnum) {
54
return $value->value;
0 commit comments