diff --git a/src/Blakechain.php b/src/Blakechain.php index a90d182..be85a52 100644 --- a/src/Blakechain.php +++ b/src/Blakechain.php @@ -109,6 +109,7 @@ public function getSummaryHash(bool $rawBinary = false): string /* Make a XOR-encrypted copy of the hash state to prevent PHP's * interned strings from overwriting the hash state and causing * corruption. */ + /** @psalm-suppress InternalMethod */ $len = Util::strlen($this->summaryHashState); $pattern = \random_bytes($len); $tmp = $pattern ^ $this->summaryHashState; @@ -204,6 +205,7 @@ public function setFirstPrevHash(string $first = ''): self */ public function setSummaryHashState(string $hashState): self { + /** @psalm-suppress InternalMethod */ $len = Util::strlen($hashState); if ($len !== 384 && $len !== 361) { throw new \RangeException(