diff --git a/src/OTP.php b/src/OTP.php index e042917..944ed8f 100644 --- a/src/OTP.php +++ b/src/OTP.php @@ -100,7 +100,7 @@ protected function generateURI(string $type, array $options): string $this->hasColon($label) === false || throw new InvalidArgumentException('Label must not contain a colon.'); $options = [...$options, ...$this->getParameters()]; $this->filterOptions($options); - $params = str_replace(['+', '%7E'], ['%20', '~'], http_build_query($options, arg_separator: '&')); + $params = str_replace(['+', '%7E'], ['%20', '~'], http_build_query($options, '', '&')); return sprintf( 'otpauth://%s/%s?%s',