vansteen / laravel-sendinblue

A Laravel 5/6/7 service provider, facade and config file for the SendinBlue's API v3 official PHP library.
MIT License
18 stars 8 forks source link

Call to undefined function GuzzleHttp\Psr7\build_query() #6

Closed DLO33 closed 3 years ago

DLO33 commented 3 years ago

Following error is produced when running the test.

\sendinblue\api-v3-sdk\lib\Api\ListsApi.php:2185 Call to undefined function GuzzleHttp\Psr7\build_query()

$headers = array_merge(
            $defaultHeaders,
            $headerParams,
            $headers
        );

        $query = \GuzzleHttp\Psr7\build_query($queryParams);

        return new Request(
            'GET',
            $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''),
            $headers,
            $httpBody
        );
DLO33 commented 3 years ago

After updating to 7.4.2 of the SDK, this was resolved.

Note Guzzle & psr7 had to be downgraded to the following

"guzzlehttp/guzzle": "^7.0", "guzzlehttp/psr7": "^1.6.1",

https://github.com/sendinblue/APIv3-php-library/issues/156

Thanks for reporting this issue We have released a patch for this issue . Please use the latest version (v7.4.2) of the PHP SDK.

Regards Sendinblue Team