mirror of
https://github.com/flarum/core.git
synced 2025-07-28 04:00:40 +02:00
Fix PHP 7.2 warning
This commit is contained in:
@@ -49,7 +49,7 @@ class RegisteredTypesScope implements ScopeInterface
|
|||||||
{
|
{
|
||||||
$query = $builder->getQuery();
|
$query = $builder->getQuery();
|
||||||
|
|
||||||
$this->whereIndex = count($query->wheres);
|
$this->whereIndex = count($query->wheres ?: []);
|
||||||
$this->bindingIndex = count($query->getRawBindings()['where']);
|
$this->bindingIndex = count($query->getRawBindings()['where']);
|
||||||
|
|
||||||
$types = array_keys($post::getModels());
|
$types = array_keys($post::getModels());
|
||||||
|
Reference in New Issue
Block a user