diff --git a/lib/Doctrine/ORM/Tools/Pagination/Paginator.php b/lib/Doctrine/ORM/Tools/Pagination/Paginator.php index c5b0b3686..81521089e 100644 --- a/lib/Doctrine/ORM/Tools/Pagination/Paginator.php +++ b/lib/Doctrine/ORM/Tools/Pagination/Paginator.php @@ -67,7 +67,7 @@ class Paginator implements \Countable, \IteratorAggregate } $this->query = $query; - $this->fetchJoinCollection = (Boolean) $fetchJoinCollection; + $this->fetchJoinCollection = (bool) $fetchJoinCollection; } /** @@ -152,7 +152,7 @@ class Paginator implements \Countable, \IteratorAggregate $whereInQuery = $this->cloneQuery($this->query); // don't do this for an empty id array - if (count($ids) == 0) { + if (count($ids) === 0) { return new \ArrayIterator(array()); }