XeroAPI / xero-php-oauth2

Xero PHP SDK for oAuth 2 generated from Xero API OpenAPI Spec 3.0
MIT License
90 stars 64 forks source link

Replace `GuzzleHttp\Psr7\build_query()` to `GuzzleHttp\Psr7\Query::build()` #249

Closed MorganGonzales closed 2 years ago

MorganGonzales commented 2 years ago

This PR replaces that deprecated _GuzzleHttp\Psr7\buildquery() to GuzzleHttp\Psr7\Query::build()

Which will address the error: Uncaught Error: Call to undefined function GuzzleHttp\Psr7\build_query()

Issue Reference #240

andrews05 commented 2 years ago

Should probably also remove the guzzlehttp/psr7 composer requirement. (As in remove completely, it will be installed by guzzle anyway so doesn't need to be in the main file)

MorganGonzales commented 2 years ago

Should probably also remove the guzzlehttp/psr7 composer requirement. (As in remove completely, it will be installed by guzzle anyway so doesn't need to be in the main file)

Thanks for catching that @andrews05. The composer.json file has now been updated

RettBehrens commented 2 years ago

Resolved in the latest release. Made the necessary changes upstream in our code generator repo.