Update SoftDeletingScope.php (#22858)

Fix for PHP 7.2 backported from 5.5 branch
This commit is contained in:
Jon Nicholson 2018-01-19 13:47:22 +00:00 committed by Taylor Otwell
parent 617c7665d2
commit 2906b572aa
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}