From c11a4310fcd4c4c2c4e8af4354b4ae594c535478 Mon Sep 17 00:00:00 2001 From: Antoine Lamirault Date: Sat, 6 Jan 2024 12:48:46 +0100 Subject: [PATCH] [Uid] Add AbstractUid::toString() --- components/uid.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/uid.rst b/components/uid.rst index 6e69e36a610..e8f2f599573 100644 --- a/components/uid.rst +++ b/components/uid.rst @@ -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. You can also convert some UUID versions to others::