Skip to content

Commit

Permalink
count() and serialize() should be uniform.
Browse files Browse the repository at this point in the history
  • Loading branch information
bar committed Mar 6, 2014
1 parent f3ccd7f commit 11eba20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Datasource/ResultSetDecorator.php
Expand Up @@ -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());
}

/**
Expand Down

0 comments on commit 11eba20

Please sign in to comment.