Skip to content

Commit ddd1367

Browse files
ltlsquareOskarStark
authored andcommitted
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.
1 parent e11a961 commit ddd1367

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)