Add __toString() to UuidInterface

Resolves #111
This commit is contained in:
Ben Ramsey
2018-08-12 10:38:50 -05:00
parent 8544df0f40
commit 5f2eaa6d2d
2 changed files with 8 additions and 3 deletions
-2
View File
@@ -1,5 +1,3 @@
parameters:
autoload_files:
- tests/phpstan-bootstrap.php
ignoreErrors:
- '#Cannot cast Ramsey\\Uuid\\UuidInterface to string.#'
+8 -1
View File
@@ -266,9 +266,16 @@ interface UuidInterface extends JsonSerializable, Serializable
public function getVersion();
/**
* Converts this UUID into a string representation.
* Returns a string representation of this UUID.
*
* @return string
*/
public function toString();
/**
* Allows casting this UUID to a string representation.
*
* @return string
*/
public function __toString();
}