diff --git a/src/Exception/OAuthServerException.php b/src/Exception/OAuthServerException.php index 1d1336a5..6ffa0fb1 100644 --- a/src/Exception/OAuthServerException.php +++ b/src/Exception/OAuthServerException.php @@ -267,7 +267,7 @@ class OAuthServerException extends \Exception ) { $authScheme = 'Bearer'; } - $headers[] = 'WWW-Authenticate: ' . $authScheme . ' realm="OAuth"'; + $headers['WWW-Authenticate'] = $authScheme . ' realm="OAuth"'; } // @codeCoverageIgnoreEnd return $headers;