Skip to content

Commit 8f0f4d8

Browse files
committed
minor #14029 Remove reference to non-existing fromBinary method (Milan Pavkovic)
This PR was merged into the 5.1 branch. Discussion ---------- Remove reference to non-existing fromBinary method Removed references to non-existing `fromBinary()` method. `fromString()` can be used to convert binary formatted UUID/ULID. Fixes symfony/symfony#36978 Commits ------- ff3a2b5 Remove reference to non-existing fromBinary method
2 parents 40d8af1 + ff3a2b5 commit 8f0f4d8

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

components/uid.rst

+2-12
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,10 @@ to create each type of UUID::
6262
If your UUID is generated by another system, use the ``fromString()`` method to
6363
create an object and make use of the utilities available for Symfony UUIDs::
6464

65-
// this value is generated somewhere else
65+
// this value is generated somewhere else (can also be in binary format)
6666
$uuidValue = 'd9e7a184-5d5b-11ea-a62a-3499710062d0';
6767
$uuid = Uuid::fromString($uuidValue);
6868

69-
If your UUIDs are generated in binary format, use the ``fromBinary()`` method
70-
to create the objects for them::
71-
72-
$uuid = Uuid::fromBinary($uuidBinaryContents);
73-
7469
Converting UUIDs
7570
~~~~~~~~~~~~~~~~
7671

@@ -140,15 +135,10 @@ Instantiate the ``Ulid`` class to generate a random ULID value::
140135
If your ULID is generated by another system, use the ``fromString()`` method to
141136
create an object and make use of the utilities available for Symfony ULIDs::
142137

143-
// this value is generated somewhere else
138+
// this value is generated somewhere else (can also be in binary format)
144139
$ulidValue = '01E439TP9XJZ9RPFH3T1PYBCR8';
145140
$ulid = Ulid::fromString($ulidValue);
146141

147-
If your ULIDs are generated in binary format, use the ``fromBinary()`` method
148-
to create the objects for them::
149-
150-
$ulid = Ulid::fromBinary($ulidBinaryContents);
151-
152142
Converting ULIDs
153143
~~~~~~~~~~~~~~~~
154144

0 commit comments

Comments
 (0)