Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http_build_query #3126

Closed
elvispdosreis opened this issue Apr 25, 2023 · 2 comments
Closed

http_build_query #3126

elvispdosreis opened this issue Apr 25, 2023 · 2 comments

Comments

@elvispdosreis
Copy link

Guzzle version(s) affected: 6.5.8
PHP version: 8.1

Description
http_build_query(): Passing null to parameter #2 ($numeric_prefix) of type string is deprecated
guzzlehttp/guzzle/src/Client.php line 445

How to reproduce

if (is_array($value)) {
 $value = http_build_query($value, null, '&', PHP_QUERY_RFC3986);
}

Possible Solution

if (is_array($value)) {
 $value = http_build_query($value, '', '&', PHP_QUERY_RFC3986);
}
@mfn
Copy link

mfn commented Apr 25, 2023

See https://github.com/guzzle/guzzle#version-guidance , 6.x is in security-fixes mode and only supports PHP <8.0

@GrahamCampbell
Copy link
Member

GrahamCampbell commented Apr 25, 2023

Yep, that's correct. Please upgrade to the latest version of Guzzle 7 ASAP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants