Skip to content

Commit e74306e

Browse 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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/uid.rst

+1-1
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)