Skip to content

Commit

Permalink
Merge pull request #9 from vovarpd/patch-2
Browse files Browse the repository at this point in the history
  • Loading branch information
joelbutcher authored May 26, 2021
2 parents c24cf5f + 87ccf6b commit d0ad9ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Scopes/ArchivableScope.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit d0ad9ee

Please sign in to comment.