8000 minor #47641 [Validator] Rename Uuid::V7_SORTABLE to Uuid::V7_MONOTON… · symfony/symfony@ed1b002 · GitHub
[go: up one dir, main page]

Skip to content

Commit ed1b002

Browse files
committed
minor #47641 [Validator] Rename Uuid::V7_SORTABLE to Uuid::V7_MONOTONIC (nicolas-grekas)
This PR was merged into the 6.2 branch. Discussion ---------- [Validator] Rename Uuid::V7_SORTABLE to Uuid::V7_MONOTONIC | Q | A | ------------- | --- | Branch? | 6.2 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - Renaming a not-yet released const. Might be more specific/clear. Commits ------- f7f2465 [Validator] Rename Uuid::V7_SORTABLE to Uuid::V7_MONOTONIC
2 parents 4d09837 + f7f2465 commit ed1b002

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Symfony/Component/Validator/Constraints/Uuid.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class Uuid extends Constraint
5151
public const V4_RANDOM = 4;
5252
public const V5_SHA1 = 5;
5353
public const V6_SORTABLE = 6;
54-
public const V7_SORTABLE = 7;
54+
public const V7_MONOTONIC = 7;
5555
public const V8_CUSTOM = 8;
5656

5757
public const ALL_VERSIONS = [
@@ -61,7 +61,7 @@ class Uuid extends Constraint
6161
self::V4_RANDOM,
6262
self::V5_SHA1,
6363
self::V6_SORTABLE,
64-
self::V7_SORTABLE,
64+
self::V7_MONOTONIC,
6565
self::V8_CUSTOM,
6666
];
6767

src/Symfony/Component/Validator/Tests/Constraints/UuidValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function getValidStrictUuids()
8282
['456daEFb-5AA6-41B5-8DBC-068B05A8B201'], // Version 4 UUID in mixed case
8383
['456daEFb-5AA6-41B5-8DBC-068B05A8B201', [Uuid::V4_RANDOM]],
8484
['1eb01932-4c0b-6570-aa34-d179cdf481ae', [Uuid::V6_SORTABLE]],
85-
['216fff40-98d9-71e3-a5e2-0800200c9a66', [Uuid::V7_SORTABLE]],
85+
['216fff40-98d9-71e3-a5e2-0800200c9a66', [Uuid::V7_MONOTONIC]],
8686
['216fff40-98d9-81e3-a5e2-0800200c9a66', [Uuid::V8_CUSTOM]],
8787
];
8888
}

0 commit comments

Comments
 (0)
0