rdohms / meetup-api-client

Guzzle powered Meetup.com API Client
MIT License
76 stars 24 forks source link

Implement rate limiting #19

Closed dennisdegreef closed 9 years ago

dennisdegreef commented 9 years ago

Scrutinizer complains about 1 new (major) issue.

https://scrutinizer-ci.com/g/rdohms/meetup-api-client/inspections/3f29085d-40be-4087-aaf8-44e27cae314b/issues/files/src/DMS/Service/Meetup/Plugin/RateLimitPlugin.php?status=new&orderField=path&order=asc

$responseHeaders = $response->getHeaders()->toArray();
// The method toArray cannot be called on $response->getHeaders() (of type array).

This is because Guzzle's docblocks declare the return value to be 'array|HeaderCollection'. toArray is called on the HeaderCollection.