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
no arquivo src/Api/Subscription.php, metodo getAll() há um problema no argumento passado no return new SubscriptionEntity($subscription->subscription), linha 30. Esse argumento vem do array map, e nao existe o objeto subscription dentro de $subscription->data;
aqui no meu caso eu troquei de
return array_map(function($subscription)
{
return new SubscriptionEntity($subscription->subscription);
}, $subscriptions->data);
para
return array_map(function($subscription)
{
//nao há subscription->subscription, é um array, portando apenas $subscription funciona
return new SubscriptionEntity($subscription);
}, $subscriptions->data);
Aparentemente ouve o mesmo Issue no Api/Notifications e ja foi corrigido
The text was updated successfully, but these errors were encountered:
MarcoNicolodi
changed the title
Undefined property: stdClass::$subscription [APP/Vendor/vendor/softr/asaas-php-sdk/src/Api/Subscription.php, line 32]
Undefined property: stdClass::$subscription [/softr/asaas-php-sdk/src/Api/Subscription.php, line 32]
Jul 11, 2016
no arquivo src/Api/Subscription.php, metodo getAll() há um problema no argumento passado no return new SubscriptionEntity($subscription->subscription), linha 30. Esse argumento vem do array map, e nao existe o objeto subscription dentro de $subscription->data;
aqui no meu caso eu troquei de
para
Aparentemente ouve o mesmo Issue no Api/Notifications e ja foi corrigido
The text was updated successfully, but these errors were encountered: