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
+1
View File
@@ -30,6 +30,7 @@ use function uuid_parse;
*/
class PeclUuidNameGenerator implements NameGeneratorInterface
{
/** @psalm-pure */
public function generate(UuidInterface $ns, string $name, string $hashAlgorithm): string
{
switch ($hashAlgorithm) {