[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:
parent
33c2ae465d
commit
cedff7715e
@ -207,7 +207,7 @@ class Paginator implements \Countable, \IteratorAggregate
|
|||||||
private function useOutputWalker(Query $query)
|
private function useOutputWalker(Query $query)
|
||||||
{
|
{
|
||||||
if ($this->useOutputWalkers === null) {
|
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;
|
return $this->useOutputWalkers;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user