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

PHP8 deprecation Exception for http_build_query #8

Open
ghost opened this issue Mar 25, 2022 · 1 comment
Open

PHP8 deprecation Exception for http_build_query #8

ghost opened this issue Mar 25, 2022 · 1 comment

Comments

@ghost
Copy link

ghost commented Mar 25, 2022

안녕하세요.

PHP8에서 아래의 오류가 발생합니다.

ErrorException: http_build_query(): Passing null to parameter #2 ($numeric_prefix) of type string is deprecated in I:\work\decafe\src\decapet_py_sync\server\vendor\guzzlehttp\guzzle\src\Client.php: 446 Stack trace: #0 [internal function ]: CodeIgniter\Debug\Exceptions->errorHandler(8192, 'http_build_quer...', 'I:\\work\\decafe\\...', 446) #1 I:\work\decafe\src\decapet_py_sync\server\vendor\guzzlehttp\guzzle\src\Client.php(446): http_build_query(Array, NULL, '&', 2) #2 I:\work\decafe\src\decapet_py_sync\server\vendor\guzzlehttp\guzzle\src\Client.php(346): GuzzleHttp\Client->applyOptions(Object(GuzzleHttp\Psr7\Request), Array) #3 I:\work\decafe\src\decapet_py_sync\server\vendor\guzzlehttp\guzzle\src\Client.php(162): GuzzleHttp\Client->transfer(Object(GuzzleHttp\Psr7\Request), Array) #4 I:\work\decafe\src\decapet_py_sync\server\vendor\guzzlehttp\guzzle\src\Client.php(182): GuzzleHttp\Client->requestAsync('GET', Object(GuzzleHttp\Psr7\Uri), Array) #5 I:\work\decafe\src\decapet_py_sync\server\vendor\iamport\rest-client\src\Iamport.php(103): GuzzleHttp\Client->request('GET', '/payments/find/...', Array) #6 I:\work\decafe\src\decapet_py_sync\server\vendor\iamport\rest-client\src\Iamport.php(53): Iamport\RestClient\Iamport->request('GET', '/payments/find/...', Array, NULL) #7 I:\work\decafe\src\decapet_py_sync\server\app\Controllers\Api\Pay.php(90): Iamport\RestClient\Iamport->callApi(Object(Iamport\RestClient\Request\Payment)) #8 I:\work\decafe\src\decapet_py_sync\server\vendor\codeigniter4\framework\system\CodeIgniter.php(832): App\Controllers\Api\Pay->complete() #9 I:\work\decafe\src\decapet_py_sync\server\vendor\codeigniter4\framework\system\CodeIgniter.php(419): CodeIgniter\CodeIgniter->runController(Object(App\Controllers\Api\Pay)) #10 I:\work\decafe\src\decapet_py_sync\server\vendor\codeigniter4\framework\system\CodeIgniter.php(326): CodeIgniter\CodeIgniter->handleRequest(NULL, Object(Config\Cache), false) #11 I:\work\decafe\src\decapet_py_sync\server\public\index.php(37): CodeIgniter\CodeIgniter->run() #12 {main }{

@ghost
Copy link
Author

ghost commented Mar 25, 2022

#guzzlehttp\guzzle\src\Client.php

445 $value = http_build_query($value, null, '&', PHP_QUERY_RFC3986);
change to
$value = http_build_query($value, '', '&', PHP_QUERY_RFC3986); // php8 fix

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

0 participants