mirror of
https://github.com/flarum/framework.git
synced 2025-03-01 15:28:40 +08:00
Fix PHP 7.2 warning
This commit is contained in:
parent
54a5ee8edc
commit
113ed7cbf8
@ -49,7 +49,7 @@ class RegisteredTypesScope implements ScopeInterface
|
||||
{
|
||||
$query = $builder->getQuery();
|
||||
|
||||
$this->whereIndex = count($query->wheres);
|
||||
$this->whereIndex = count($query->wheres ?: []);
|
||||
$this->bindingIndex = count($query->getRawBindings()['where']);
|
||||
|
||||
$types = array_keys($post::getModels());
|
||||
|
Loading…
x
Reference in New Issue
Block a user