1
0
mirror of synced 2025-02-09 00:39:25 +03:00

[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        |
This commit is contained in:
Javier Spagnoletti 2015-07-14 16:48:42 -03:00
parent 33c2ae465d
commit cedff7715e

View File

@ -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;