Skip to content

[Uid] Add AbstractUid::toString() #19386

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 6, 2024
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