Skip to content

Commit 1b4e681

Browse files
committed
Fix deprecation: null parameter to http_build_query
PHP 8.1 logs a deprecation error: > PHP Deprecated: http_build_query(): > Passing null to parameter #2 ($numeric_prefix) of type string is deprecated This can be fixed without breaking PHP 7. Related: #293
1 parent dcad97b commit 1b4e681

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Runtime/Auth/AuthenticationContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ protected function ensureAuthorizationHeader(RequestOptions $options)
151151
*/
152152
protected function ensureAuthenticationCookie(RequestOptions $options)
153153
{
154-
$headerVal = http_build_query($this->authCookies,null, "; ");
154+
$headerVal = http_build_query($this->authCookies, '', "; ");
155155
$options->ensureHeader('Cookie', urldecode($headerVal));
156156
}
157157

0 commit comments

Comments
 (0)