Skip to content

Commit 56a7254

Browse files
committed
minor #20907 [Uid] Fix Uuid::v8() usage example to show it requires a UUID string (Hmache)
This PR was submitted for the 7.3 branch but it was merged into the 6.4 branch instead. Discussion ---------- [Uid] Fix Uuid::v8() usage example to show it requires a UUID string This update corrects the usage example of Uuid::v8() to prevent misuse and confusion <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `7.x` for features of unreleased versions). --> Commits ------- 3abba12 [uid] Fix Uuid::v8() usage example to show it requires a UUID string
2 parents 6e50d91 + 3abba12 commit 56a7254

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/uid.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ of the UUID value is specific to each implementation and no format should be ass
140140
use Symfony\Component\Uid\Uuid;
141141

142142
// $uuid is an instance of Symfony\Component\Uid\UuidV8
143-
$uuid = Uuid::v8();
143+
$uuid = Uuid::v8('d9e7a184-5d5b-11ea-a62a-3499710062d0');
144144

145145
.. versionadded:: 6.2
146146

0 commit comments

Comments
 (0)