Skip to content

Commit

Permalink
refactor: use const for JsonDocumentType name (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
KerianMM authored Jul 1, 2023
1 parent e029a58 commit 89b0148
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Type/JsonDocumentType.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
*/
final class JsonDocumentType extends JsonType
{
public const NAME = 'json_document';

/**
* @var SerializerInterface
*/
Expand Down Expand Up @@ -119,6 +121,6 @@ public function requiresSQLCommentHint(AbstractPlatform $platform): bool

public function getName(): string
{
return 'json_document';
return self::NAME;
}
}

0 comments on commit 89b0148

Please sign in to comment.