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
@@ -25,6 +25,7 @@ use function hash;
*/
class DefaultNameGenerator implements NameGeneratorInterface
{
/** @psalm-pure */
public function generate(UuidInterface $ns, string $name, string $hashAlgorithm): string
{
/** @var string|bool $bytes */