Closed dennisdegreef closed 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.
toArray
HeaderCollection
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
This is because Guzzle's docblocks declare the return value to be 'array|HeaderCollection'.
toArray
is called on theHeaderCollection
.