private function validateSaltLength(string $salt)
    {
        if (\mb_strlen($salt, '8bit') !== self::KEY_SALT_BYTE_LENGTH) {
            throw new InvalidArgumentException('Salt must be ' . self::KEY_SALT_BYTE_LENGTH . ' bytes long');
        }
    }
private function validateSaltLength(string $salt)
    {
        if (\mb_strlen($salt, '8bit') !== self::KEY_SALT_BYTE_LENGTH) {
            throw new InvalidArgumentException('Salt must be ' . self::KEY_SALT_BYTE_LENGTH . ' bytes long');
        }
    }
private function validateSaltLength ( string $ salt ) { if ( \ mb_strlen ( $ salt , '8bit' ) !== self :: KEY_SALT_BYTE_LENGTH ) { throw new InvalidArgumentException ( 'Salt must be ' . self :: KEY_SALT_BYTE_LENGTH . ' bytes long' ) ; } }
Verifies the salt length

@param string $salt The salt to validate
@throws InvalidArgumentException Thrown if the salt is not the correct length
Verifies the salt length