From 89b01483c4f6e7a5e25fc2ea18b2fe46574617ae Mon Sep 17 00:00:00 2001 From: Kerian MONTES-MORIN <41105539+KerianMM@users.noreply.github.com> Date: Sat, 1 Jul 2023 07:05:21 +0200 Subject: [PATCH] refactor: use const for JsonDocumentType name (#126) --- src/Type/JsonDocumentType.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Type/JsonDocumentType.php b/src/Type/JsonDocumentType.php index 1229e06..c9c0ea7 100644 --- a/src/Type/JsonDocumentType.php +++ b/src/Type/JsonDocumentType.php @@ -20,6 +20,8 @@ */ final class JsonDocumentType extends JsonType { + public const NAME = 'json_document'; + /** * @var SerializerInterface */ @@ -119,6 +121,6 @@ public function requiresSQLCommentHint(AbstractPlatform $platform): bool public function getName(): string { - return 'json_document'; + return self::NAME; } }