Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[uid] Please add ::toString() method to Symfony/Uid #53333

Closed
@sofigio

Description

@sofigio

Description

Just like the Ramsey class, we just want to print that uid as a string.
Currently, we must use ::toRfc4122() which every time makes me wonder "what is rfc 4122? I have to google that" and I waste time because I'm not sure it's the proper method, or as an alternative:

  • ->__toString()
  • (string) cast

which are aesthetically unpleasing. It would be a quality of life improvement to have a simple ->toString() method."

Example

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions