Skip to content

Commit 4ff29e4

Browse files
committed
minor symfony#58329 [Routing][Uid] [6.4] Mention RFC 9562 (fancyweb)
This PR was merged into the 6.4 branch. Discussion ---------- [Routing][Uid] [6.4] Mention RFC 9562 | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | - | License | MIT Follow-up to symfony#58238 on 6.4 Commits ------- edf9916 [6.4][Routing][Uid] Mention RFC 9562
2 parents 97cdd88 + edf9916 commit 4ff29e4

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/Symfony/Component/Routing/Requirement/Requirement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ enum Requirement
2323
public const POSITIVE_INT = '[1-9][0-9]*';
2424
public const UID_BASE32 = '[0-9A-HJKMNP-TV-Z]{26}';
2525
public const UID_BASE58 = '[1-9A-HJ-NP-Za-km-z]{22}';
26-
public const UID_RFC4122 = '[0-9a-f]{8}(?:-[0-9a-f]{4}){3}-[0-9a-f]{12}';
26+
public const UID_RFC4122 = '[0-9a-f]{8}(?:-[0-9a-f]{4}){3}-[0-9a-f]{12}'; // RFC 9562 obsoleted RFC 4122 but the format is the same
2727
public const ULID = '[0-7][0-9A-HJKMNP-TV-Z]{25}';
2828
public const UUID = '[0-9a-f]{8}-[0-9a-f]{4}-[13-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}';
2929
public const UUID_V1 = '[0-9a-f]{8}-[0-9a-f]{4}-1[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}';

src/Symfony/Component/Uid/AbstractUid.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public function toBase32(): string
124124
/**
125125
* Returns the identifier as a RFC 9562/4122 case insensitive string.
126126
*
127-
* @see https://tools.ietf.org/html/rfc4122#section-3
127+
* @see https://datatracker.ietf.org/doc/html/rfc9562/#section-4
128128
*
129129
* @example 09748193-048a-4bfb-b825-8528cf74fdc1 (len=36)
130130
*/

src/Symfony/Component/Uid/Uuid.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,9 @@ public function toBinary(): string
153153
}
154154

155155
/**
156-
* Returns the identifier as a RFC4122 case insensitive string.
156+
* Returns the identifier as a RFC 9562/4122 case insensitive string.
157157
*
158-
* @see https://tools.ietf.org/html/rfc4122#section-3
158+
* @see https://datatracker.ietf.org/doc/html/rfc9562/#section-4
159159
*
160160
* @example 09748193-048a-4bfb-b825-8528cf74fdc1 (len=36)
161161
*/

0 commit comments

Comments
 (0)