Skip to content

Commit

Permalink
Update ArchivableScope.php
Browse files Browse the repository at this point in the history
Fix of "count(): Parameter must be an array or an object that implements Countable" according to:
laravel/framework#22843
  • Loading branch information
Volodymyr Chukh authored May 24, 2021
1 parent c24cf5f commit 87ccf6b
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 87ccf6b

Please sign in to comment.