-
Notifications
You must be signed in to change notification settings - Fork 41
Open
Description
A variavel $filters é indefinida no método getByCustomer em src/Api/Subscription.php
trocar de
public function getByCustomer($customerId)
{
$subscriptions = $this->adapter->get(sprintf('%s/customers/%s/subscriptions?%s', $this->endpoint, $customerId, http_build_query($filters)));
$subscriptions = json_decode($subscriptions);
$this->extractMeta($subscriptions);
return array_map(function($subscription)
{
return new SubscriptionEntity($subscription);
}, $subscriptions->data);
}
para
public function getByCustomer($customerId,$filters = [])
{
$subscriptions = $this->adapter->get(sprintf('%s/customers/%s/subscriptions?%s', $this->endpoint, $customerId, http_build_query($filters)));
$subscriptions = json_decode($subscriptions);
$this->extractMeta($subscriptions);
return array_map(function($subscription)
{
return new SubscriptionEntity($subscription);
}, $subscriptions->data);
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels