Mark toString() method as deprecated, scheduled for removal in 4.0.0

This commit is contained in:
Ben Ramsey
2018-08-12 10:49:01 -05:00
parent 59c8bb0840
commit 4c467ce4d5
2 changed files with 12 additions and 0 deletions
+4
View File
@@ -268,6 +268,10 @@ interface UuidInterface extends JsonSerializable, Serializable
/**
* Converts this UUID into a string representation.
*
* @deprecated In ramsey/uuid 4.0.0, this method will be replaced with the
* __toString() magic method, which is currently available in the
* Uuid concrete class. The new recommendation is to cast Uuid objects
* to string, rather than calling `toString()`.
* @return string
*/
public function toString();