When using the GuzzleHttpAdapter and calling the RateLimit API to return the current usage limits I get the following PHP notices:
[11-Nov-2019 10:12:40 UTC] PHP Notice: Array to string conversion in /digitalocean-v2/src/Adapter/GuzzleHttpAdapter.php on line 121
[11-Nov-2019 10:12:40 UTC] PHP Notice: Array to string conversion in /digitalocean-v2/src/Adapter/GuzzleHttpAdapter.php on line 122
[11-Nov-2019 10:12:40 UTC] PHP Notice: Array to string conversion in /digitalocean-v2/src/Adapter/GuzzleHttpAdapter.php on line 123
The response that comes back from the GuzzleHttpAdapter looks like this:
When using the GuzzleHttpAdapter and calling the RateLimit API to return the current usage limits I get the following PHP notices:
The response that comes back from the GuzzleHttpAdapter looks like this:
And the final RateLimit object looks like this:
The following changes fixes the issue and returns the values correctly
The final RateLimit Object with these changes looks like this: