Skip to content

Commit 23e7ac7

Browse files
committed
[Uid][Serializer][Validator] Mention RFC 9562
1 parent 454027e commit 23e7ac7

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)