Skip to content

Commit

Permalink
Refactor Zend\Stdlib\ArrayTools to ArrayUtils, add missing headers.
Browse files Browse the repository at this point in the history
- ArrayTools will now be called ArrayUtils after an anonymous vote (http://framework.zend.com/wiki/display/ZFDEV2/POLL+-+Array+class+name).
- Add missing Zend Framework headers to ArrayUtils class file and tests.
  • Loading branch information
Thinkscape committed Mar 8, 2012
1 parent bc80c3a commit 009a059
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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\ArrayTools,
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 = ArrayTools::iteratorToArray($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 009a059

Please sign in to comment.