8000 bug #14710 [Uid] Update uid.rst (ltlsquare) · colinodell/symfony-docs@2615e59 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2615e59

Browse files
committed
bug symfony#14710 [Uid] Update uid.rst (ltlsquare)
This PR was submitted for the 5.2 branch but it was merged into the 5.1 branch instead. Discussion ---------- [Uid] Update uid.rst Uuid::fromString(); should not be instantiated as "new". The Ulid section is correct the uuid section contains this error. Especially confusing when you are just starting with this newly implemented functionality. <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `5.x` for features of unreleased versions). --> Commits ------- ddd1367 Update uid.rst
2 parents e11a961 + ddd1367 commit 2615e59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/uid.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Converting UUIDs
7171

7272
Use these methods to transform the UUID object into different bases::
7373

74-
$uuid = new Uuid::fromString('d9e7a184-5d5b-11ea-a62a-3499710062d0');
74+
$uuid = Uuid::fromString('d9e7a184-5d5b-11ea-a62a-3499710062d0');
7575

7676
$uuid->toBinary(); // string(16) "..." (binary contents can't be printed)
7777
$uuid->toBase32(); // string(26) "6SWYGR8QAV27NACAHMK5RG0RPG"

0 commit comments

Comments
 (0)
0