Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e74306e

Browse filesBrowse files
authored
[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
1 parent 50c531c commit e74306e
Copy full SHA for e74306e

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎components/uid.rst

Copy file name to clipboardExpand all lines: components/uid.rst
+1-1Lines 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
If your UUID value is already generated in another format, use any of the
146146
following methods to create a ``Uuid`` object from it::

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.