Permalink
Browse files

Fix PHP 7.2 warning

  • Loading branch information...
skywalker512 committed Feb 12, 2018
1 parent d8f0f8f commit fe03a710807217c00ca5079557ea332e3379041f
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Core/Post/RegisteredTypesScope.php
@@ -49,7 +49,7 @@ public function apply(Builder $builder, Model $post)
{
$query = $builder->getQuery();
$this->whereIndex = count($query->wheres);
$this->whereIndex = count($query->wheres ?: []);
$this->bindingIndex = count($query->getRawBindings()['where']);
$types = array_keys($post::getModels());

0 comments on commit fe03a71

Please sign in to comment.