From f7f2465f2e3e93cef2c38d4795fb91da16c7ac60 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Wed, 21 Sep 2022 10:43:08 +0200 Subject: [PATCH] [Validator] Rename Uuid::V7_SORTABLE to Uuid::V7_MONOTONIC --- src/Symfony/Component/Validator/Constraints/Uuid.php | 4 ++-- .../Validator/Tests/Constraints/UuidValidatorTest.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Symfony/Component/Validator/Constraints/Uuid.php b/src/Symfony/Component/Validator/Constraints/Uuid.php index 89067fdd47881..4c9dedd8fe94a 100644 --- a/src/Symfony/Component/Validator/Constraints/Uuid.php +++ b/src/Symfony/Component/Validator/Constraints/Uuid.php @@ -51,7 +51,7 @@ class Uuid extends Constraint public const V4_RANDOM = 4; public const V5_SHA1 = 5; public const V6_SORTABLE = 6; - public const V7_SORTABLE = 7; + public const V7_MONOTONIC = 7; public const V8_CUSTOM = 8; public const ALL_VERSIONS = [ @@ -61,7 +61,7 @@ class Uuid extends Constraint self::V4_RANDOM, self::V5_SHA1, self::V6_SORTABLE, - self::V7_SORTABLE, + self::V7_MONOTONIC, self::V8_CUSTOM, ]; diff --git a/src/Symfony/Component/Validator/Tests/Constraints/UuidValidatorTest.php b/src/Symfony/Component/Validator/Tests/Constraints/UuidValidatorTest.php index 9a1e0183b7f02..b14e5c0dda158 100644 --- a/src/Symfony/Component/Validator/Tests/Constraints/UuidValidatorTest.php +++ b/src/Symfony/Component/Validator/Tests/Constraints/UuidValidatorTest.php @@ -82,7 +82,7 @@ public function getValidStrictUuids() ['456daEFb-5AA6-41B5-8DBC-068B05A8B201'], // Version 4 UUID in mixed case ['456daEFb-5AA6-41B5-8DBC-068B05A8B201', [Uuid::V4_RANDOM]], ['1eb01932-4c0b-6570-aa34-d179cdf481ae', [Uuid::V6_SORTABLE]], - ['216fff40-98d9-71e3-a5e2-0800200c9a66', [Uuid::V7_SORTABLE]], + ['216fff40-98d9-71e3-a5e2-0800200c9a66', [Uuid::V7_MONOTONIC]], ['216fff40-98d9-81e3-a5e2-0800200c9a66', [Uuid::V8_CUSTOM]], ]; }