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
$paginator = $client->events()->all();
foreach ( iterator_to_array($paginator) as $record)
{
// do sth with record...does not work correctly
// ie you only get the first "page" ie 50 records by default.
}
iterator_to_array() should be effectively the same as:
The text was updated successfully, but these errors were encountered:
oschonrock
changed the title
GoCardlessPro\Core\Paginator does work with iterator_to_array()
GoCardlessPro\Core\Paginator does not work with iterator_to_array()
Oct 30, 2017
I'm not familiar with iterator_to_array. How commonly is it used? Presumably if this is broken, then our Paginator is implemented in a way which is somehow incompatible with Iterable
iterator_to_array() should be effectively the same as:
But it is not. (PHP v 5.6.29)
The text was updated successfully, but these errors were encountered: