From cedff7715e8153a85c8331723ae7ddda93fc0ca0 Mon Sep 17 00:00:00 2001 From: Javier Spagnoletti Date: Tue, 14 Jul 2015 16:48:42 -0300 Subject: [PATCH] [Paginator] Fixed boolean casting in Paginator | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | --- lib/Doctrine/ORM/Tools/Pagination/Paginator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/ORM/Tools/Pagination/Paginator.php b/lib/Doctrine/ORM/Tools/Pagination/Paginator.php index 81521089e..a01f52a30 100644 --- a/lib/Doctrine/ORM/Tools/Pagination/Paginator.php +++ b/lib/Doctrine/ORM/Tools/Pagination/Paginator.php @@ -207,7 +207,7 @@ class Paginator implements \Countable, \IteratorAggregate private function useOutputWalker(Query $query) { if ($this->useOutputWalkers === null) { - return (Boolean) $query->getHint(Query::HINT_CUSTOM_OUTPUT_WALKER) == false; + return (bool) $query->getHint(Query::HINT_CUSTOM_OUTPUT_WALKER) === false; } return $this->useOutputWalkers;