diff --git a/src/Scopes/ArchivableScope.php b/src/Scopes/ArchivableScope.php index 3406cde..451d1a0 100644 --- a/src/Scopes/ArchivableScope.php +++ b/src/Scopes/ArchivableScope.php @@ -50,7 +50,7 @@ public function extend(Builder $builder) */ protected function getArchivedAtColumn(Builder $builder) { - if (count($builder->getQuery()->joins) > 0) { + if (count((array) $builder->getQuery()->joins) > 0) { return $builder->getModel()->getQualifiedArchivedAtColumn(); }