It seems like $this->client->request('get', '/subscriptions') can also be of type AcquiaCloudApi\Connector\StreamInterface; however, parameter $subscriptions of AcquiaCloudApi\Response\...Response::__construct() does only seem to accept array<mixed,object>, 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
18
return new SubscriptionsResponse(/** @scrutinizer ignore-type */ $this->client->request('get', '/subscriptions'));
Loading history...
19
}
20
21
/**
22
* Shows information about an subscription.
23
*
24
* @param string $subscriptionUuid
25
* @return SubscriptionResponse
26
*/
27
public function get($subscriptionUuid): SubscriptionResponse
28
{
29
return new SubscriptionResponse(
30
$this->client->request(
31
'get',
32
"/subscriptions/${subscriptionUuid}"
33
)
34
);
35
}
36
37
/**
38
* Renames an subscription.
39
*
40
* @param string $subscriptionUuid
41
* @param string $name
42
* @return OperationResponse
43
*/
44
public function rename($subscriptionUuid, $name): OperationResponse