Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions components/uid.rst
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,11 @@ Use these methods to transform the UUID object into different bases::
$uuid->toBase58(); // string(22) "TuetYWNHhmuSQ3xPoVLv9M"
$uuid->toRfc4122(); // string(36) "d9e7a184-5d5b-11ea-a62a-3499710062d0"
$uuid->toHex(); // string(34) "0xd9e7a1845d5b11eaa62a3499710062d0"
$uuid->toString(); // string(36) "d9e7a184-5d5b-11ea-a62a-3499710062d0"

.. versionadded:: 7.1

The ``toString()`` method was introduced in Symfony 7.1.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps it could be relevant to document what representation is output


You can also convert some UUID versions to others::

Expand Down