Propagating @psalm-pure to factories and builders used internally to purely assemble a UuidInterface

Ref: https://github.com/ramsey/uuid/pull/300#issuecomment-601329450
This commit is contained in:
Marco Pivetta
2020-03-23 10:16:15 +01:00
parent c8e8b7b693
commit 15a5d4f5e1
12 changed files with 40 additions and 12 deletions
+4
View File
@@ -83,6 +83,8 @@ interface UuidFactoryInterface
*
* @return UuidInterface A UuidInterface instance that represents a
* version 3 UUID
*
* @psalm-pure
*/
public function uuid3($ns, string $name): UuidInterface;
@@ -103,6 +105,8 @@ interface UuidFactoryInterface
*
* @return UuidInterface A UuidInterface instance that represents a
* version 5 UUID
*
* @psalm-pure
*/
public function uuid5($ns, string $name): UuidInterface;