You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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);
}
The text was updated successfully, but these errors were encountered:
MarcoNicolodi
changed the title
Variável indefinita em src/Api/Subscription.php linha 56
Variável indefinida em src/Api/Subscription.php linha 56
Jul 11, 2016
A variavel $filters é indefinida no método getByCustomer em src/Api/Subscription.php
trocar de
para
The text was updated successfully, but these errors were encountered: