Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge branch 'master' into hotfix/view-listener-from-null
Browse files Browse the repository at this point in the history
  • Loading branch information
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Paginator.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
Zend\Db\Table\Select as DbTableSelect,
Zend\Filter\Filter,
Zend\Json\Json,
Zend\Stdlib\IteratorToArray,
Zend\Stdlib\ArrayUtils,
Zend\View;

/**
Expand Down Expand Up @@ -263,7 +263,7 @@ public static function getAdapterBroker()
public static function setConfig($config)
{
if ($config instanceof Traversable) {
$config = IteratorToArray::convert($config);
$config = ArrayUtils::iteratorToArray($config);
}
if (!is_array($config)) {
throw new Exception\InvalidArgumentException(__METHOD__ . ' expects an array or Traversable');
Expand Down

0 comments on commit ecb2a1a

Please sign in to comment.