Skip to content

Commit 2670c31

Browse files
committed
minor #16640 Update uid.rst (94noni)
This PR was submitted for the 6.0 branch but it was merged into the 5.4 branch instead. Discussion ---------- Update uid.rst Same doc as Ulid but for Uuid Commits ------- c3fe53a Update uid.rst
2 parents 75862b6 + c3fe53a commit 2670c31

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

components/uid.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,10 @@ UUID objects created with the ``Uuid`` class can use the following methods
120120

121121
// getting the UUID datetime (it's only available in certain UUID types)
122122
$uuid = Uuid::v1();
123-
$uuid->getDateTime(); // returns a \DateTimeImmutable instance
123+
$uuid->getDateTime(); // returns a \DateTimeImmutable instance
124+
125+
// checking if a given value is valid as UUID
126+
$isValid = Uuid::isValid($uuid); // true or false
124127

125128
// comparing UUIDs and checking for equality
126129
$uuid1 = Uuid::v1();

0 commit comments

Comments
 (0)