Update SoftDeletingScope.php (#22858)
Fix for PHP 7.2 backported from 5.5 branch
This commit is contained in:
parent
617c7665d2
commit
2906b572aa
|
@ -52,7 +52,7 @@ class SoftDeletingScope implements Scope
|
|||
*/
|
||||
protected function getDeletedAtColumn(Builder $builder)
|
||||
{
|
||||
if (count($builder->getQuery()->joins) > 0) {
|
||||
if (count((array) $builder->getQuery()->joins) > 0) {
|
||||
return $builder->getModel()->getQualifiedDeletedAtColumn();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue