Update param typehint to accept UuidInterface as v3/v5 namespace

This commit is contained in:
Ben Ramsey
2019-11-30 14:15:06 -08:00
parent be88f95a50
commit 1273cfaf39
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -45,7 +45,7 @@ interface UuidFactoryInterface
* Generate a version 3 UUID based on the MD5 hash of a namespace identifier
* (which is a UUID) and a name (which is a string).
*
* @param string $ns The UUID namespace in which to create the named UUID
* @param string|UuidInterface $ns The UUID namespace in which to create the named UUID
* @param string $name The name to create a UUID for
* @return UuidInterface
* @throws InvalidUuidStringException
@@ -66,7 +66,7 @@ interface UuidFactoryInterface
* Generate a version 5 UUID based on the SHA-1 hash of a namespace
* identifier (which is a UUID) and a name (which is a string).
*
* @param string $ns The UUID namespace in which to create the named UUID
* @param string|UuidInterface $ns The UUID namespace in which to create the named UUID
* @param string $name The name to create a UUID for
* @return UuidInterface
* @throws InvalidUuidStringException