8000 [Validator] Rename Uuid::V7_SORTABLE to Uuid::V7_MONOTONIC by nicolas-grekas · Pull Request #47641 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Validator] Rename Uuid::V7_SORTABLE to Uuid::V7_MONOTONIC #47641

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Symfony/Component/Validator/Constraints/Uuid.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand All @@ -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,
];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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]],
];
}
Expand Down
0