Skip to content

Commit 9c483af

Browse files
minor #58238 [Serializer][Uid][Validator] Mention RFC 9562 (fancyweb)
This PR was merged into the 5.4 branch. Discussion ---------- [Serializer][Uid][Validator] Mention RFC 9562 | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | - | License | MIT RFC 4122 has been obsoleted by RFC 9562 since May 2024. The format remains the same so we don't need to do anything. Renaming everything with BC would certainly be a waste of time. However, we can add some comments and update the links to be up-to-date. Commits ------- a387b1d26e [Uid][Serializer][Validator] Mention RFC 9562
2 parents 4bb3f80 + 23e7ac7 commit 9c483af

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Constraints/Uuid.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class Uuid extends Constraint
3939
self::INVALID_VARIANT_ERROR => 'INVALID_VARIANT_ERROR',
4040
];
4141

42-
// Possible versions defined by RFC 4122
42+
// Possible versions defined by RFC 9562/4122
4343
public const V1_MAC = 1;
4444
public const V2_DCE = 2;
4545
public const V3_MD5 = 3;
@@ -64,7 +64,7 @@ class Uuid extends Constraint
6464
public $message = 'This is not a valid UUID.';
6565

6666
/**
67-
* Strict mode only allows UUIDs that meet the formal definition and formatting per RFC 4122.
67+
* Strict mode only allows UUIDs that meet the formal definition and formatting per RFC 9562/4122.
6868
*
6969
* Set this to `false` to allow legacy formats with different dash positioning or wrapping characters
7070
*

Constraints/UuidValidator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@
1919
/**
2020
* Validates whether the value is a valid UUID (also known as GUID).
2121
*
22-
* Strict validation will allow a UUID as specified per RFC 4122.
22+
* Strict validation will allow a UUID as specified per RFC 9562/4122.
2323
* Loose validation will allow any type of UUID.
2424
*
2525
* @author Colin O'Dell <[email protected]>
2626
* @author Bernhard Schussek <[email protected]>
2727
*
28-
* @see http://tools.ietf.org/html/rfc4122
28+
* @see https://datatracker.ietf.org/doc/html/rfc9562
2929
* @see https://en.wikipedia.org/wiki/Universally_unique_identifier
3030
*/
3131
class UuidValidator extends ConstraintValidator

0 commit comments

Comments
 (0)