whiteoctober/Pagerfanta — comment on commit 27495ec4d2c95a6d8624cee1cd481ff87673dfc0
File: src/Pagerfanta/Pagerfanta.php line 155
By stof:

IMO you should return the iterator instead of turning it into an array. ``iterator_to_array`` will kill all potential benefit from the iterator here as it fetches all results into an array