1
0
mirror of https://github.com/flarum/core.git synced 2025-07-25 10:41:24 +02:00

Fix PHP 7.2 warning

This commit is contained in:
Toby Zerner
2017-12-10 21:02:47 +10:30
parent 54a5ee8edc
commit 113ed7cbf8

View File

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