Skip to content

Commit 04e448c

Browse files
committed
Fix the use of traitsUsed
1 parent a48908e commit 04e448c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/EventListeners/SoftDeletableListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ private function isSoftDeletable($entity)
3535
$traitsUsed = array_merge($traitsUsed, class_uses($parent));
3636
}
3737

38-
return array_key_exists('Mitch\LaravelDoctrine\Traits\SoftDeletes', class_uses($entity));
38+
return array_key_exists('Mitch\LaravelDoctrine\Traits\SoftDeletes', $traitsUsed);
3939
}
4040
}

src/Filters/TrashedFilter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ private function isSoftDeletable($entity)
1717
$traitsUsed = array_merge($traitsUsed, class_uses($parent));
1818
}
1919

20-
return array_key_exists('Mitch\LaravelDoctrine\Traits\SoftDeletes', class_uses($entity));
20+
return array_key_exists('Mitch\LaravelDoctrine\Traits\SoftDeletes', $traitsUsed);
2121
}
2222
}

0 commit comments

Comments
 (0)