Skip to content

Commit d68a28f

Browse files
committed
Update AbstractEnumType
1 parent 64a9b27 commit d68a28f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DBAL/Types/AbstractEnumType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public function requiresSQLCommentHint(AbstractPlatform $platform): bool
128128
*/
129129
public function getName(): string
130130
{
131-
return $this->name ?: \array_search(\get_class($this), self::getTypesMap(), true);
131+
return $this->name ?: (string) \array_search(\get_class($this), self::getTypesMap(), true);
132132
}
133133

134134
/**

0 commit comments

Comments
 (0)