Browse files

Refactor Zend\Stdlib\ArrayTools to ArrayUtils, add missing headers.

- 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...
1 parent bc80c3a commit 009a059fad6a229514e12c0c4f00fa1c07d4a4d3 @Thinkscape Thinkscape committed Mar 8, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 Paginator.php
View
4 Paginator.php
@@ -34,7 +34,7 @@
Zend\Db\Table\Select as DbTableSelect,
Zend\Filter\Filter,
Zend\Json\Json,
- Zend\Stdlib\ArrayTools,
+ Zend\Stdlib\ArrayUtils,
Zend\View;
/**
@@ -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');

0 comments on commit 009a059

Please sign in to comment.