protected function setHashSalt($str): void
    {
        $type = gettype($str);
        if (! is_string($str)) {
            throw StrictTypeException::cstrTypeError($str, 'Salt');
        }
        $str = trim($str);
        if (strlen($str) < 8) {
            throw InvalidArgumentException::saltTooShort($str);
        }
        $this->salt = $str;
    }
protected function setHashSalt($str): void
    {
        $type = gettype($str);
        if (! is_string($str)) {
            throw StrictTypeException::cstrTypeError($str, 'Salt');
        }
        $str = trim($str);
        if (strlen($str) < 8) {
            throw InvalidArgumentException::saltTooShort($str);
        }
        $this->salt = $str;
    }
protected function setHashSalt ( $ str ) : void { $ type = gettype ( $ str ) ; if ( ! is_string ( $ str ) ) { throw StrictTypeException :: cstrTypeError ( $ str , 'Salt' ) ; } $ str = trim ( $ str ) ; if ( strlen ( $ str ) < 8 ) { throw InvalidArgumentException :: saltTooShort ( $ str ) ; } $ this -> salt = $ str ; }
Sets the salt to use when generating the internal keys.

@param string $str The string to use as the salt when creating the internal key prefix.

@throws StrictTypeException
@throws InvalidArgumentException

@psalm-suppress RedundantConditionGivenDocblockType

@return void
Sets the salt to use when generating the internal keys .