Fix PHP 7.2 warning

This commit is contained in:
Toby Zerner 2017-12-10 21:02:47 +10:30
parent 1a239ee93a
commit 617a76dda8

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