Permalink
Browse files

count() and serialize() should be uniform.

  • Loading branch information...
1 parent f3ccd7f commit 11eba20fd35aa84cb8415368e7873a82ed690d09 @bar bar committed Mar 6, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Datasource/ResultSetDecorator.php
@@ -40,7 +40,7 @@ class ResultSetDecorator extends Collection implements Countable, Serializable,
* @return integer
*/
public function count() {
- return count(iterator_to_array($this));
+ return count($this->toArray());
}
/**

0 comments on commit 11eba20

Please sign in to comment.