PHPExpertsInc / RESTSpeaker

A quick and easy GuzzleHTTP extension for effortlessly handling RESTful APIs.
MIT License
7 stars 3 forks source link

Add Guzzle method hints #17

Closed hopeseekr closed 5 years ago

hopeseekr commented 5 years ago

The Problem

While we use @mixin GuzzleHttp\Client, this doesn't account for how RESTSpeaker returns stdClass for successful JSON requests. This leads to the following phpstan errors:

image

The Solution

Include the appropriate GuzzleClient method hints in RESTSpeaker.