It seems like $this->client->pendingRe...ptions)->send($options) can also be of type GuzzleHttp\Promise\PromiseInterface; however, parameter $baseResponse of Reviewsio\Endpoints\SimpleResponse::__construct() does only seem to accept Illuminate\Http\Client\Response, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
9
return new SimpleResponse(/** @scrutinizer ignore-type */ $this->client->pendingRequest($pendingRequestOptions)->send(...$options));