Closed hopeseekr closed 5 years ago
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:
@mixin GuzzleHttp\Client
stdClass
Include the appropriate GuzzleClient method hints in RESTSpeaker.
The Problem
While we use
@mixin GuzzleHttp\Client
, this doesn't account for how RESTSpeaker returnsstdClass
for successful JSON requests. This leads to the following phpstan errors:The Solution
Include the appropriate GuzzleClient method hints in RESTSpeaker.