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

Commit

Permalink
Merge branch 'hotfix/psr-2_compliance' of git://github.com/RWOverdijk…
Browse files Browse the repository at this point in the history
…/zf2 into RWOverdijk-hotfix/psr-2_compliance
  • Loading branch information
Ralph Schindler committed Aug 13, 2012
2 parents e0f8777 + ab3b2c4 commit 5b111b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Paginator.php
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ public function getItemCount($items)

if (is_array($items) || $items instanceof Countable) {
$itemCount = count($items);
} elseif($items instanceof Traversable) { // $items is something like LimitIterator
} elseif ($items instanceof Traversable) { // $items is something like LimitIterator
$itemCount = iterator_count($items);
}

Expand Down

0 comments on commit 5b111b1

Please sign in to comment.